How to add delete and change password for user in ubuntu 12.04.
While you can add a user and remove it from the GUI very quickly, it’s not very fun. Moreover, Linux is all about the terminal, so in this article, we will use the CLI to add delete and change password for a user in Ubuntu.
To add remove or change a password for a user, simply go to the control panel, type user account and press enter. In the user window, unlock the username you want to edit by clicking the lock button at the top and then make the desired changes.
To add a new user
Open terminal and enter the following command
username sudo adduser
Here, replace the username keyword with the new user you want to add. Next, you will be asked to enter a password for authorization, a password for the new user you just added, and some basic information. After entering them, press Y to confirm and the new user will be added. See, for example, the following snapshot.
To remove the current user
sudo deluser username
To change the user’s password of the current user type
password
To change the password of any other type of user
username passwd
Replace the username with the username you want to change the password for.