How to change a user's password?

QuestionsQuestions4 SkillsProUser Account ManagementSep, 27 2025
0120

To change a user's password in Linux, you can use the passwd command. Here’s how to do it:

  1. Open your terminal.

  2. Use the following command, replacing username with the actual username of the account you want to change the password for:

    sudo passwd username
    
  3. You will be prompted to enter a new password and then confirm it by typing it again.

If you are changing your own password, you can simply use:

passwd

This will prompt you to enter your current password followed by the new password.

Let me know if you need further assistance!

0 Comments

no data
Be the first to share your comment!