Re: [CentOS] reset CentOS-7 lost root password

2014-08-05 Thread Scott Robbins
On Tue, Aug 05, 2014 at 11:35:44AM +, Paul Jones wrote: > > On 05/08/14 12:26, Matthew Miller wrote: > > On Tue, Aug 05, 2014 at 11:21:35AM +, Paul Jones wrote: > >> - mount -o remount,rw on your root partition before you'll be allowed to > >> write any changes > >> - touch /.autorelabel t

Re: [CentOS] reset CentOS-7 lost root password

2014-08-05 Thread Bonnie B Mtengwa
Thanks guys solved the issue using the LiveCD, Regards Bonnie -Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@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

Re: [CentOS] reset CentOS-7 lost root password

2014-08-05 Thread Paul Jones
On 05/08/14 12:26, Matthew Miller wrote: > On Tue, Aug 05, 2014 at 11:21:35AM +, 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 y

Re: [CentOS] reset CentOS-7 lost root password

2014-08-05 Thread Matthew Miller
On Tue, Aug 05, 2014 at 11:21:35AM +, 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/sb

Re: [CentOS] reset CentOS-7 lost root password

2014-08-05 Thread Paul Jones
Should be do-able without the live CD: At the GRUB menu, edit the kernel line, add init=/bin/sh to the end of it and boot from that. You'll end up at the shell prompt, where you can change the password with the normal passwd command. You may need to: - mount -o remount,rw on your root partition

[CentOS] reset CentOS-7 lost root password

2014-08-05 Thread Bonnie B Mtengwa
Hie I lost my CentOS 7 root password, so I tried booting the OS in single user mode but it prompts me for the root password when the system boots, Any ideas? Regards Bonnie ___ CentOS mailing list CentOS@centos.org http://lists.centos.or