CentOS 7 changing other user password
- 2 minutes to read
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.