[CentOS] reset CentOS-7 lost root password

Tue Aug 5 12:02:37 UTC 2014
Bonnie B Mtengwa <bmtengwa at potraz.gov.zw>

Thanks guys solved the issue using the LiveCD, 

Regards

Bonnie


-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf
Of Paul Jones
Sent: Tuesday, 5 August 2014 1:36 PM
To: CentOS mailing list
Subject: Re: [CentOS] reset CentOS-7 lost root password


On 05/08/14 12:26, Matthew Miller wrote:
> On Tue, Aug 05, 2014 at 11:21:35AM +0000, Paul Jones wrote:
>> - mount -o remount,rw on your root partition before you'll be allowed 
>> to write any changes
>> - touch /.autorelabel to make sure SELinux doesn't refuse the changes 
>> after you reboot (if you're enforcing SELinux, obviously)
> Or `/usr/sbin/load_policy -i` before remounting rw
>

Didn't realise that tool existed. That's a useful one, thanks.

Also just realised the previous top-post. Sorry list.

Paul

--

_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos