Getting to root when the password has been lost

Pete Holsberg pjh at mccc.uucp
Sat Sep 8 10:54:02 AEST 1990


Get the distribution diskettes and boot from number 1 (of 7).  At the
first prompt, hit DEL.  This gives you a root prompt for the OS on the
floppy.  fsck /dev/dsk/0s1 and then mount it.  Copy /mnt/etc/passwd to
/mnt/etc/tmp.passwd.  Copy /etc/passwd to /mnt/etc/passwd.  Do the same
shuffle with the shadow password file.

Now unmount the HD, give a couple of syncs, and run uadmin 2 2 to reboot.

I had to do a similar thing just this morning!

Pete

-- 
Prof. Peter J. Holsberg      Mercer County Community College
Voice: 609-586-4800          Engineering Technology, Computers and Math
UUCP:...!princeton!mccc!pjh  1200 Old Trenton Road, Trenton, NJ 08690
Internet: pjh at mccc.edu	     Trenton Computer Festival -- 4/20-21/91



More information about the Comp.unix.internals mailing list