Adduser

From LQWiki
Jump to navigation Jump to search

adduser is a front-end available on Debian (and Debian-derived) systems to the low-level useradd command.

Examples

adduser -c "First Middle Last" #add user " for text with spaces after -c
adduser -m username  # add user and Make homedirectory
adduser -c "First Middle Last" -g server #adduser to group server
adduser -c "First Middle Last" -g server -G project #adduser to optional group project
adduser -c "First Middle Last" -g server -G project -s /bin/bash #set users shell
adduser -c "First Middle Last" -g server -G project -s /bin/bash fml #set login name

After adduser you should use passwd to assign a password.

See also

  • webmin - how do you set up lots of these at the same time
  • useradd