LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2002, 12:32 PM   #1
natso
LQ Newbie
 
Registered: May 2002
Location: England
Distribution: SuSE
Posts: 5

Rep: Reputation: 0
Unhappy 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!!


__________________
 
Old 05-27-2002, 01:57 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Boot from rescue disk, edit /etc/shadow and delete all between first two : in root line. It looks like this
root:strange_texts:******
 
Old 05-27-2002, 02:58 PM   #3
natso
LQ Newbie
 
Registered: May 2002
Location: England
Distribution: SuSE
Posts: 5

Original Poster
Rep: Reputation: 0
Unhappy 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????
 
Old 05-28-2002, 03:07 AM   #4
verigoth
Member
 
Registered: May 2002
Posts: 179

Rep: Reputation: Disabled
lilo

# Linux init=/bin/bash

# mount -n / -o rw
# passwd root

should do it

verigoth
 
Old 05-28-2002, 04:59 AM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
single user mode in lilo valjoux Linux - General 1 10-20-2005 12:03 AM
single user mode... navaladi Mandriva 2 12-26-2004 02:41 AM
single-user mode can't boot eye Red Hat 1 11-19-2003 04:08 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 09:52 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration