Re: Lost root password!!
Hi,
Simple. Do the init=/bin/sh trick. When you're booted, mount / -o
remount,rw
Then edit /etc/passwd and add this to /etc/passwd:
root2::0:0:root:/root:/bin/bash
This should do the trick :)
Hope it works!
El mar, 23-04-2002 a las 00:12, Stefan Srdic escribió:
> hi,
>
> Last night when I attempted to change my root password passwd bunked out on me. It crashed and I received the following message on the console:
>
> passwd: Critical error - immediate abort
>
> I thought that I could still use my old root password but cannot. I attempted to boot straight into a shell (init=/bin/sh) and manually expire my root password (so that I could change it on the next login) and ended up with the same results. I've also tried deleting the root passwd to see if I could then re-run passwd as root and change my passwd. No luck.
>
> I can still log into my system as a normal user but cannot change any users passwords, I get the same error message as above.
>
> Is passwd in Woody broken? How can I fix my broken root password without harming my system?
>
> Any feedback would be greatly appreciated.
>
> Thanks,
>
> Stef
>
>
> --
> To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
Luis Gómez Miralles
InfoEmergencias - Technical Department
Phone (+34) 654 24 01 34
Fax (+34) 963 49 31 80
lgomez@infoemergencias.com
PGP Public Key available at http://www.infoemergencias.com/lgomez.asc
--
To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: