sudo adduser --disabled-password --comment '' alice

Category: Administration

sudo adduser --disabled-password --comment '' alice

Create a user without a password

The --disabled-password flag creates the account with no password, so it cannot log in interactively until one is set, and --comment '' skips the full-name prompt. This is the standard recipe for service accounts. Lock it down further with --shell /usr/sbin/nologin.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.