0

To change unix password from command line: i used :

To change the root password:

sudo passwd

This gave instructions to change the UNIX password. It did not change my user password, who is the only user on the computer.

So which password was changed? Im new and im lost. Thanks

thinktechtv
  • 89
  • 1
  • 4

1 Answers1

1

You changed the root passwd. Using the sudo command elevated your privileges to root and then executed the passwd command on itself.

To change the password of a user, run:

sudo passwd userid

Where userid is the login of the account you want to update.

You probably want to re-lock the root password as well. By default the root password is locked for security reasons. Lock the root command with:

sudo passwd --lock root

More information on the passwd command can be viewed in its manpage:

man passwd