Re: [CentOS] Password recovery trick not working on CentOS

2018-05-30 Thread Nicolas Kovacs
Le 30/05/2018 à 08:16, John R. Dennison a écrit :
> Most likely you didn't relabel the filesystem.

Indeed. Adding 'touch /.autorelabel' did the trick.

Cheers,

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Password recovery trick not working on CentOS

2018-05-30 Thread John R. Dennison
On Wed, May 30, 2018 at 07:54:34AM +0200, Nicolas Kovacs wrote:
> 
> I tried this out of curiosity on a CentOS 7 sandbox machine, and this
> doesn't seem to work anymore. I 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 media to call to account people
who abuse their power, whether it be here or elsewhere.

-- Former President George W Bush, "Today" show interview, 27 February 2017



pgpguNUnqvviO.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos