Partilhar via


CentOS 7 changing other user password

I forgot one user’s password. Luckily, I could remember the root password. That enables me to change the other user password even if I don’t recall the current one.

$ sudo su

$ passwd username

This prompted me to give the new password and confirm.

image

That’s it.