CentOS 7 Forgot root password. How to reset the root password.

mar

bitcoin is freedom
Staff member
Joined
Jan 14, 2015
Messages
170
Points
28
Credits
55,526,874
Bronze Usergroup
Username Style
I recently forgot to label one of my virtual machines which had CentOS 7 on it. When i imported and started the virtual machines i realized i had forgotten the password.

I found this video useful in order to reset the password. It worked for me.

On launch press "E"
At the end of the file type in "rd.break" then press ctrl-x to restart
mount -o remount,rw /sysroot
chroot /sysroot
passwd
"enter new password"
"re-type new password"

That's it!

SOURCE:
 
The Biggest Forums - The Biggest, Largest, Best, Most Popular Forums and Message Boards Top List on the Internet.
The Biggest Forums - The Biggest, Largest, Best, Most Popular Forums and Message Boards Top List on the Internet. Forum-List.com

Number of visitors since November 2018: