How To Manage Linux Users

Howto add a user

While logged in as root, type:

adduser username

Where "username" is the name of the user you want ot add. Enter the password for the user when prompted.

How to change a password

While logged in as root or the user that will be changed, type:

passwd username

Where "username" is the name of the user whose password you want to change. If "passwd" is typed, the password will be changed for the user, you are logged in as.

How to remove a user

While logged in as root, type:

userdel -r username

Where "username" is the name of the user you want to remove. This will remove the user's home directory. You can delete the user without the "-r" option and delete the user's home directory manually. If the group the user was in, is no longer needed, you may delete it by editing the "/etc/group" file.