On Sat, 14 Aug 1999, Ken Wilson wrote:
> However, because I couldn't log in as root I couldn't use mv to rename the
> backup file. I attempted to do this by booting in runlevel 1. I was
> successful in moving this file back. However, my old root password no
> longer works when I try to let it do a normal boot at runlevel 3.
Try booting with "init=/bin/sh". Unless you've activated some LILO
security features, that will give you a root shell.
do:
mount -o rw,remount /
vi [or any other editor] /etc/shadow
Replace the line reading something like
root:$1$p8fRUBO9$gbNM1tqtVPTWOYhkGMEC41:10818:0:99999:7:-1:-1:134542400
with
root::10818:0:99999:7:-1:-1:134542400
Save the file, exit the editor, type "sync", and press Ctrl-D.
Now you should be able to boot into runlevels 3 and 5; the root password
is empty.
Don't forget to change it back to something more difficult to guess as
soon as possible.
LLaP
bero
--
Tired of waiting for Windows 2000?
STOP WAITING! http://www.ms-windows-2000.com/