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 :

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

[CentOS] Password recovery trick not working on CentOS

2018-05-29 Thread Nicolas Kovacs
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