Explicitly use /bin/bash even if shell is /bin/false
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 8 Mar 2014 18:38:41 +0000 (12:38 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 8 Mar 2014 18:38:41 +0000 (12:38 -0600)
docs/source/siteadmin/deploying.rst

index 92191929c352a8ec959ccf648be93bf514447b19..1cf633b39bc13bd1204ab509e7f22c83323a0e90 100644 (file)
@@ -136,11 +136,11 @@ username if you wish.::
 No password will be assigned to this account, and you will not be able
 to log in as this user. To switch to this account, enter either::
 
-  sudo su mediagoblin  # (if you have sudo permissions)
+  sudo -u mediagoblin /bin/bash  # (if you have sudo permissions)
 
 or::
 
-  su mediagoblin  # (if you have to use root permissions)
+  su mediagoblin -s /bin/bash  # (if you have to use root permissions)
 
 You may get a warning similar to this when entering these commands::