On Saturday 13 October 2007 09:26, Jan Engelhardt wrote: > On Oct 13 2007 08:03, Glenn Holmer wrote: > >You can just enter "init=/bin/sh" on the Boot Options line of the > > GRUB boot screen. The system will boot straight into bash and you > > can use your favorite editor on /etc/shadow. > > ... which is the way how it has been done ever since. > But you need /bin/bash otherwise you get, as pointed out, a sh-compat > shell.
I don't see how that matters if all you're using it for is to invoke an editor against a single file and then reboot... > >After removing the password, use ctrl-alt-delete to restart the > > machine (if you use "exit" or control-D, you get a kernel panic / > > hard wait). > > Actually, you use > > umount -a > reboot -f Thanks, but ctrl-alt-del is quite a few less keystrokes. On the other hand... > And I don't see why passwd would not work. Just make sure your root > volume is actually read-write Yes, that was the case, but I think it's an issue with XFS, which tends to be less forgiving in situations like this. Cf. this bug: https://bugzilla.novell.com/show_bug.cgi?id=326942 which didn't bother people running ext3 or reiser. I tried the procedure again using the above two commands and did not see the problem. Thanks, filed for future reference. -- "After the vintage season came the aftermath - and Cenbe." Glenn Holmer (Q-Link: ShadowM) http://www.lyonlabs.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
