docs: Switched to 'useradd', as it is a more cross-distro cmd.
authorJim Campbell <jcampbell@gnome.org>
Mon, 30 Mar 2015 00:40:36 +0000 (19:40 -0500)
committerJim Campbell <jcampbell@gnome.org>
Mon, 30 Mar 2015 00:40:36 +0000 (19:40 -0500)
'adduser' is installed on Debian-based systems by default, but is
not installed by default on Fedora-based systems. 'useradd' is
installed by default on Debian-based systems, as well. The
'useradd'-based command provides the same functionality as
'adduser' in this case, though setting up a 'system' user with
no password.

Per bug 886, I've added the '--user-group' flag, which creates a
mediagoblin group, and assigns the mediagoblin user to this
group, too.

docs/source/siteadmin/deploying.rst

index 9c7bab22f68c18d84fa0d242cfe17e5ddd765515..765c248cdce982150b10b348439194dca094e509 100644 (file)
@@ -126,7 +126,7 @@ The following command (entered as root or with sudo) will create a
 system account with a username of ``mediagoblin``. You may choose a different
 username if you wish.::
 
-   adduser --system mediagoblin
+   useradd --system --user-group mediagoblin
 
 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::