To change the password of a user in Ubuntu, follow these steps:
- Open the terminal by pressing Ctrl + Alt + T or searching for "Terminal" in the applications.
- Type the command sudo passwd username, replacing username with the actual username of the user whose password you want to change.
- Press Enter, and you will be prompted to enter the new password for the user.
- Type the new password and press Enter. You will be asked to re-enter the new password to confirm it.
- Type the new password again and press Enter.
- 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.