24 Jun
2003
24 Jun
'03
22:51
On Wed, 2003-06-25 at 00:45, Robert C. Paulsen Jr. wrote:
1. At LILO prompt, use linux init=/bin/sh then remove the "x" from root's line in /etc/passwd.
That's not a very good idea, it confuses the system. su won't repect it and will still require the password from /etc/shadow (at least in 8.2, in previous versions the system will stop using shadow completely for that user and will put the new password in the world readable /etc/passwd), while the console login will still log you in without a password even after setting it with passwd unless you restore the 'x' afterwards It's much easier to work with /etc/shadow, just delete the contents of the password field.