LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Password Recovery and Single User mode (https://www.linuxquestions.org/questions/linux-newbie-8/password-recovery-and-single-user-mode-21936/)

natso 05-27-2002 12:32 PM

Password Recovery and Single User mode
 
I've got a SuSE Linux box but don't know the root password.

I've tried the following, but it doesn't work as it still asks for a root password.

Any ideas??

>>>>>
I' tried....

1. At LILO prompt: linux single
2. The machine then boots into Single User mode, but then instead of getting a # prompt, it asks for the Root password - which is not 'blank', as I've tried that.

I've also tried booting from a floppy boot disk, but I get the same, as if whilst booting, it detects the hard disk, and reads those root password files.

<<<<<<<

thanks in advance for any help!!


__________________

Mara 05-27-2002 01:57 PM

Boot from rescue disk, edit /etc/shadow and delete all between first two : in root line. It looks like this
root:strange_texts:******

natso 05-27-2002 02:58 PM

unable to edit shadow file
 
thanks for the advice, but, when i boot using the rescue disk, and in single user mode, the hard disk partition containing the shadow file is automatically mounted as read-only.

any ideas how i can get to change the shadow file?

i guess i need to somehow mount the partition as read/write, but it's not happening - unless i'm not doing it right???? :(

verigoth 05-28-2002 03:07 AM

lilo

# Linux init=/bin/bash

# mount -n / -o rw
# passwd root

should do it

verigoth

linuxcool 05-28-2002 04:59 AM

When you boot up with the rescue disk, try entering
linux single rw. I hope that works.


All times are GMT -5. The time now is 07:42 PM.