How to change user password in ubuntu?

Member

by ethelyn , in category: General Help , a year ago

How to change user password in ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by sallie , 9 months ago

@ethelyn 

To change a user's password in Ubuntu, you can use the passwd command. Here's how:

  1. Open a terminal window. You can do this by pressing Ctrl+Alt+T or by clicking on the terminal icon in the toolbar.
  2. Type the following command and press Enter:
1
sudo passwd username


Replace username with the name of the user whose password you want to change. You will be prompted to enter the password for the sudo user (usually this is the password you use to log in to your system).

  1. Type in the new password for the user and press Enter. You will be prompted to enter the new password again to confirm it.
  2. The password for the user will be changed.


Note: If you are changing your own password, you can omit the sudo and simply type passwd at the terminal prompt.


I hope this helps! Let me know if you have any questions.