How to change the password of a user in Ubuntu?

Member

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

How to change the password of a user in Ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by keegan.towne , a year ago

@johann 

To change the password of a user in Ubuntu, follow these steps:

  1. Open the terminal by pressing Ctrl + Alt + T or searching for "Terminal" in the applications.
  2. Type the command sudo passwd username, replacing username with the actual username of the user whose password you want to change.
  3. Press Enter, and you will be prompted to enter the new password for the user.
  4. Type the new password and press Enter. You will be asked to re-enter the new password to confirm it.
  5. Type the new password again and press Enter.
  6. Once you have successfully changed the password, you will receive a message confirming the change.


Note: When entering passwords in the terminal, the characters will not appear on the screen. This is a security measure to prevent others from seeing the password as you type it.

Member

by ethelyn , 3 months ago

@johann 

Here are the step-by-step instructions to change a user's password in Ubuntu:

  1. Open the terminal by pressing Ctrl + Alt + T or by searching for "Terminal" in the applications menu.
  2. In the terminal, type the following command to change the password for a specific user (replace username with the actual username of the user):
1
sudo passwd username


  1. Press Enter after typing the command. You will be prompted to enter the new password for the user.
  2. Type the new password for the user and press Enter. You will be asked to re-enter the new password to confirm it.
  3. Type the new password again and press Enter to confirm.
  4. If the passwords match, you will receive a message indicating that the password has been successfully updated for the specified user.


That's it! The password for the user in Ubuntu has been changed successfully. Remember to keep your password secure and avoid sharing it with anyone.