How to change a user password in Ubuntu?

To change a user’s password in Ubuntu, follow these steps:

  1. Open the terminal by pressing the shortcut Ctrl + Alt + T.
  2. Enter the following command to change the user password:
sudo passwd 用户名

Replace the username with the username for which you want to change the password, for example:

sudo passwd bob
  1. After pressing the Enter key, the system will prompt you to enter a new password. Once you have entered the new password, press Enter to confirm.
  2. The system will ask you to confirm your password again. After entering the new password once more, press the Enter key to confirm.
  3. After successfully changing your password, the system will display a message confirming that the password has been updated.

You have now successfully changed the user’s password. You can use the new password to log in to the user’s account.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds