Reset CentOS 7 root Password

By admin, April 30, 2018 1:14 pm

1. Menu press “e”
2. Find the line “linux16 vmlinuz…: at the end add “init=/bin/sh”, then Ctrl + x
3. mount -o remount,rw /
4. passwd root
5. touch /.autorelabel
6. exec /sbin/init (You will need to WAIT for a few minutes)

Leave a Reply