Add New Users

Username must be unique!

adduser username

This command performs:

  • Edits /etc/passwd /etc/shadow /etc/group and /etc/gshadow files for the newly created user
  • Creates and populates a home directory for the new user
  • Sets permissions and ownerships of the home directory

After the new user is created, you should make a password for that user:

passwd username

Leave a Comment

Tested on Ubuntu & Pop OS