William Shallum

Adding App Users

Posted Oct 7 2011, 16:33 by William Shallum [updated Oct 7 2011, 16:37]

(for Debian / Ubuntu)

I always have to look these up :(

adduser --disabled-login --disabled-password --gecos '' <username>
adduser --system --disabled-login --disabled-password --shell=/bin/bash --gecos '' <username>

Additional options:

Difference: system users are using the system UID range. system users don’t have the skeleton files copied to the homedir. system users are in “nogroup” instead of a user group.

The gecos is set to ’’ so it doesn’t prompt for full name, room number etc. The user name should be enough (right?).