[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forgot Password



 > 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




Why do you want this page removed?