Displaying 2 results from an estimated 2 matches for "resetrootpassword".
2018 May 30
0
Password recovery trick not working on CentOS
...can boot to a 'bash' console and set the
> password OK. But this password doesn't seem to work on the subsequent
> normal boot.
>
> Anybody knows why this is so?
Most likely you didn't relabel the filesystem. Please take a look at
https://wiki.centos.org/TipsAndTricks/ResetRootPassword - bottom of the
page and the link to access.redhat.com's writeup.
John
--
I consider the media to be indispensable to democracy, We need an independent
media to hold people like me to account. Power can be very addictive and it
can be corrosive, and it's important for the me...
2018 May 30
3
Password recovery trick not working on CentOS
Hi,
I remember back in the days, there was a neat trick to recover a lost
root password, or more exactly, redefine a new password for root.
1. In the bootloader, boot the system with the 'init=/bin/bash' kernel
argument.
2. Remount the root partition in read-write mode:
# mount -o remount,rw /
3. Set the password for root:
# passwd
4. Remount the root partition in read-only