cmd/adduser
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< cmd
<hide> page type::reference thing type::command platform::Linux </hide>
Basics
adduser is a command for creating users on a Debian-based system. It is somewhat higher-level than the useradd command.
Example
This should add a new user with sudo privileges, no password, and skips the interactive prompts (but I have not tested it yet):
[ <sudo> ] adduser --disabled-password --gecos "" <username> [ <sudo> ] usermod -aG sudo <username>
- The "sudo" is optional if you are acting as root.
- "
--disabled-password" sets the password field to "!", which apparently disables all password authentication. - the "sudo" group (in the 2nd command) is for Debian-derived Linux flavors; Red Hat flavors apparently use the "wheel" group.
