From: andy@resi.waldorf-gmbh.de (Andreas Busse) Subject: Re: LOST root password. Date: 30 Jun 1993 12:36:31 GMT
In article <1993Jun26.061229.5504@comtch.spk.wa.us>, jprevost@comtch.spk.wa.us (John Prevost) writes:
|> On 25 Jun 93 05:15:13 GMT, Fei Hai Chua (fhchua@athena.mit.edu) wrote:
|>
|> > Not sure how I screw this, but I created a new user and change the password
|> > for the newuser. Since after that, I couldn't log in as root anymore.
|>
|> > So what is the screat key for single user mode boot?
|>
|> > I tried to boot from floppy, but it didn't work.
|>
|> > -Fei
|>
|> When I screwedmy root password (I was playing with the passwd file, okay?
|> Just a little mistake. I'm learning!) I had to do a re-install of the base
|> system (a sequence in SLS), and was able to re-work everything. The re-install
|> just re-wrote some attributes, etc. Also, I could boot from the SLS A1 floopy,
|> then access the Linux HD from there (mount /root2 /dev/hda2 for me). There
|> might be a simpler solution, but this will work.
|> --
|> ------------------------------------------------------------
|> 1024/0CA877 37 5B A3 FB B0 FC 8D 19 82 EB 1F 53 34 EF F8 32
|> ------------------------------------------------------------
|> John McClary Prevost | jprevost@comtch.computech.spk.wa.us
There's a simpler solution, if you have a bootdisk/rootdisk pair.
Boot with the bootdisk, mount your harddisk to /mnt,
cd to /mnt/etc and edit your password file. Just throw out the
password entry, ie.
root:KUHFFjkJH9435:<yourname>:...
should look:
root::<yourname>:...
Write back, reboot from harddisk. That's it.
Andy