From: Christopher Curtis <ccurtis@ee.fit.edu>
To: axp-list@redhat.com
Cc: linux-admin@vger.rutgers.edu, hedon@nycport.com
Subject: Re: Urgent help needed . Passwd file deleted
Date: Mon, 6 Jul 1998 17:21:40 -0400 (EDT) [thread overview]
Message-ID: <Pine.GSO.3.96.980706171622.6386J-100000@dhow.ee.fit.edu> (raw)
In-Reply-To: <35A132EA.EFCD4B79@nycport.com>
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/
next prev parent reply other threads:[~1998-07-06 21:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-06 20:26 Urgent help needed . Passwd file deleted George
1998-07-06 21:21 ` Christopher Curtis [this message]
1998-07-06 22:02 ` Warren
1998-07-06 22:26 ` Quant-X Alpha Linux Support
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox