How to create users
Step-by-step guide
- Begin by adding the user
- sudo useradd <username> // this will create the new user account
- sudo echo <username>:<new_password> | sudo chpasswd // this will force through a new password onto the account
- To allow the <username> to change their password
- passwd -u <username> // this will unlock the password so it can be changed by the user
- sudo su - <username> // this logs onto the users account
- passwd // the user can now follow the prompts to change their password
Related articles