it's shadowed..
hmm..someone may have a better answer than I do here..I have two. First
one is the way I was told was "correct" but never works for me, the second
is the way I do it, and darn it, it works :)
1. boot up with the redhat boot and supp disk for your version of redhat
in rescue mode, mount the root partition on /mnt , and the rest under /mnt
so you have all your libraries (generally you just need to mount root and
/usr, as I recall). run passwd -- I have never gotten this to work, but
I"m told it's the best way. Since I usually end up doing this on customer
machines, I usually don't have the time to try several reboots to find the
correct set of bootdisks for said machine, and it doesn't work with the
right boot disks in slackware anyway :)
2. (the way I do this now) boot up in any rescue mode you wish (I use a
regular boot floppy here, but the boot/supp disks in rescue mode ought to
work too, single user is probably best if you can get into it...having
had to do this on machines that didn't allow it for 'security' reasons..).
copy a passwd file with a known root password to a floppy,
and mount it.
do (on the mounted hard drive)
cp /etc/passwd /etc/passwd.sav
cp /etc/shadow /etc/shadow.sav
rm /etc/shadow
and then copy the known passwd file to /etc/passwd on the hard drive.
reboot, log in as root using the known root password, copy the saved
passwd and shadow files back (yes you want to overwrite the passwd that
you copied on). run passwd, and choose a password. :)
I haven't found circumstances under which the second one fails yet
(someone once told me that moving the shadow file will break some ways of
password shadowing. they may be correct, but it hasn't happened to me yet)
Vinnie
--
[EMAIL PROTECTED] System Administrator Epoch Internet
"Connecting The World, One Business At A Time......
By Caring About A Customers Success"
[EMAIL PROTECTED] Spam Patrol
On Wed, 6 May 1998, Jack Hatfield wrote:
> Date: Wed, 6 May 1998 04:28:03 -0400
> From: Jack Hatfield <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Thank you and one more
> Resent-Date: 6 May 1998 20:30:49 -0000
> Resent-From: [EMAIL PROTECTED]
> Resent-cc: recipient list not shown: ;
>
> I appreciate everyone's help on this, I really do. One day I shall repay. I
> am about to get RedHat 5.0 here friday and that installation will be fun.
>
> Anyway here is the question, I am in single user mode editing the
> /etc/passwd file. I do not see any passwords, only this:
>
> root:x:0:0:root:/root:/bin/ksh
>
> Where or how do I delete the password?
>
> . I tried to delete the x but that did not help. I know I am stupid and I
> was just thrown into this, I just ordered 5.0 and all the manuals so I hope
> to get better.
>
>
> RocNet Monster
> RocSoft, Inc.
> 915 Lyttleton St.
> Camden SC 29020
> 803 713-3433
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject.
>
>
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.