Re: how to change root passwd (if forgotten)
>>>>> Robert Blair Mason <rbmj@verizon.net> writes:
>>>>> On Thu, 11 Aug 2011 15:48:02 -0600
>> sulogin is easy enough to bypass.
>> * Boot Live CD
>> * Mount /
>> * Edit /etc/inittab
>> * Comment out si::sysinit:/etc/init.d/rcS
>> * Reboot into single user mode
>> Much easer than chroots, or any of the other previous suggestion, IMO.
> Easier than:
> * Add init=/bin/bash to the end of kernel in grub
> * mount -o remount,rw /
> * passwd
> * sync & reboot
I'd rather recommend # umount -a instead of # sync here.
Then, to my experience, # exec /sbin/init is by no way inferior
to # reboot.
> ? Most people I know would rather blindly type commands than edit a
> file, and I for one lose my Live CDs a lot :D
--
FSF associate member #7257
Reply to: