Random Notes‎ > ‎

Adding App Users

posted Oct 7, 2011, 9:33 AM by William Shallum   [ updated Oct 7, 2011, 9:37 AM ]
(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:
  • --ingroup <group> change user's primary group 
  • --no-create-home
  • --home <homedir>

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?).