From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21195 invoked from network); 6 Jul 1998 21:26:37 -0000 Received: from winnie.fit.edu (163.118.5.1) by mail2.redhat.com with SMTP; 6 Jul 1998 21:26:37 -0000 Received: from ee.fit.edu (yacht.ee.fit.edu [163.118.30.1]) by winnie.fit.edu (8.8.7/8.8.7) with SMTP id RAA02609; Mon, 6 Jul 1998 17:21:12 -0400 (EDT) Received: from dhow.ee.fit.edu by ee.fit.edu (SMI-8.6/SMI-SVR4) id RAA21428; Mon, 6 Jul 1998 17:24:36 -0400 Received: from localhost by dhow.ee.fit.edu (SMI-8.6/SMI-SVR4) id RAA06563; Mon, 6 Jul 1998 17:21:40 -0400 Date: Mon, 6 Jul 1998 17:21:40 -0400 (EDT) From: Christopher Curtis To: axp-list@redhat.com cc: linux-admin@vger.rutgers.edu, hedon@nycport.com Subject: Re: Urgent help needed . Passwd file deleted In-Reply-To: <35A132EA.EFCD4B79@nycport.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 6 Jul 1998, George wrote: > So I did it. I wacked the passwd file and I cant get in. Boot from a floppy like you were going to install/upgrade. Switch to another terminal (alt-f2) and there should be a login prompt. Mount your root filesystem manually (mount -t ext2 /dev/sda2 /mnt) and edit the file /mnt/etc/passwd to create an entry that looks like this: root::0:1:superuser:/:/bin/bash Then unmount the filesystem (umount /mnt) and cycle the machine. You can now log in as "root" with no password. If you have shadow passwords installed, you'll have to create a similar entry in /mnt/etc/shadow: root::0:::::: You may need, if using /etc/shadow, to put an 'x' is the password field entry in /etc/passwd. I'm not sure how Linux deals with shadow files. rgds, -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/