[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forgot Password
- To: http://www.juno.com/~w1few (Richard), http://www.adelphia.net/~bhavani (Richard), 	http://www.dracomp.com/~r (Richard), 	http://www.verizon.net/~bhavani3 (Richard)
- Subject: Re: Forgot Password
- From: http://dummy.us.eu.org/robert (Robert)
- Date: Tue, 13 Feb 2007 11:45:13 -0800
- Keywords: http://www.juno.com/~w1few
 > From: "http://www.juno.com/~w1few" <http://www.juno.com/~w1few>
 > Date: Tue, 13 Feb 2007 16:43:28 GMT
 >
 > Linux machine - I can't remember the password.  Is there any easy way
 > around this?
Depends.  You could try interrupting the boot process and do
linux single
(assuming your kernel alias for booting is "linux").  The "single" as an
argument will bring up the system in single user mode.  It may or may not
ask for a password.
If that doesn't work, you'll have to boot with a rescue CD or rescue
floppy.  (I used to use Tom's small linux.  See http://www.toms.net/rb )
In that case, you'll have to mount the hard drive, perhaps:
$ mount /dev/hda1 /mnt
Then, renaming /etc/shadow to /etc/shadow.bak may be sufficient to force
you into a root shell upon single user mode reboot:
$ mv /mnt/etc/shadow /mnt/etc/shadow.bak
http://aplawrence.com/Linux/lostlinuxpassword.html seems to mirror my
suggested procedure.
 > D