How to change another user's password?

0127

To change another user's password in a Unix-like operating system, you need superuser privileges. You can do this using the passwd command followed by the username of the account whose password you want to change. Here’s how:

  1. Open your terminal.

  2. Use the following command:

    sudo passwd username
    

    Replace username with the actual username of the account.

  3. You will be prompted to enter a new password for the user. Type the new password and confirm it.

Example:

To change the password for a user named cyberuser, you would run:

sudo passwd cyberuser

After entering the new password, the password for cyberuser will be updated.

0 Comments

no data
Be the first to share your comment!