Re: Single user mode

Marek Michalkiewicz (marekm@i17linuxb.ists.pwr.wroc.pl)
Wed, 15 Jan 1997 17:44:48 +0100 (MET)


Richard B. Johnson:
> In your case, the idea is to mount the "previous" root file-system read/write
> and edit /etc/passwd. Just remove the root password, i.e., "::" instead of
> the ":JUNK:" that presently exists. If you use shadow passwords, you also
> have to execute pwconv to make the change take effect and pwconv only works
> on the "real" password file. Therein lies the problem. In this case, you
> have to rename the old password file (to save it) and the shadow file.

Not exactly kernel-related :) - but you can just edit /etc/shadow on
the "previous" root filesystem, and remove the root password there.
The password is the second colon-separated field in /etc/shadow (just
like in /etc/passwd).

Marek