Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!princeton!mccc!pjh From: pjh@mccc.uucp (Pete Holsberg) Newsgroups: comp.unix.internals Subject: Re: Getting to root when the password has been lost Message-ID: <1990Sep8.005402.12846@mccc.uucp> Date: 8 Sep 90 00:54:02 GMT References: <24412@adm.BRL.MIL> Reply-To: pjh@mccc.edu (Pete Holsberg) Organization: The College On The Other Side Of Route One Lines: 18 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@mccc.edu Trenton Computer Festival -- 4/20-21/91