LinuxQuestions.org
Review your favorite Linux distribution.
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-16-2008, 07:40 AM   #1
Qbito
LQ Newbie
 
Registered: May 2008
Posts: 7

Rep: Reputation: 0
Root password


Hello guys,

I try to retrive Root password from Suse 10.1 linux machine. I try many difrrent ways from net but no luck. Let me explain where is the problem.

- i'm starting from Suse 10.1 boot CD
- then Resuce System (after while there is red windows telling: Could not find Suse Linux Install Source. Activaitng Manual setup Program),OK
- then chosing lanugage and keyboard
- In the Main menue window I pick up, Start Installation or System,
- then Start Rescue System
- Source media (CD-ROM),
- Automatic DHCP (Yes),

and in the text trybe: Resuce login (root). And when I try to mount drive

mount /dev/hda1 /mnt I've got. (You must specifie the file system type).

When I do:

fdisk -l, it shows:

/dev/hda1* ... f W95 Ext'd (LBA)
/dev/hda5 83 Linux
/dec/hda6 82 Linux Swap
/dev/hda7 82 Linux Swap
/dev/hda8 83 Linux
/dev/hda9 83 Linux

Is any thing what could help on this situation.

Thank You
 
Old 05-16-2008, 09:03 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
I didn't really get where is the problem.
Do you have a problem to rescue a root password or to mount /dev/hda1?
 
Old 05-16-2008, 10:17 AM   #3
Qbito
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
I think to recuse a root password you need to mount first
 
Old 05-16-2008, 10:26 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
i am doubting that /dev/hda1 is your / partition!
try /dev/hda5 /dev/hda8 or /dev/hda9!
 
Old 05-16-2008, 11:11 AM   #5
Qbito
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
I manage to mount it was hda8, I remove password from passwd and shadow but know when I try to type root in ligin user window I have "Authentication Failure".
 
Old 05-16-2008, 11:15 AM   #6
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
perhaps before editing passwd and shadow files manually you should know what you are doing!
the x in passwd (column where the password is supposed to be) means the password is md5'ed in the shadow file!
 
Old 05-16-2008, 11:18 AM   #7
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You need the entry in the /etc/passwd and /etc/shadow files. The entry in /etc/passwd should look like:

root:x:0:0:root:/root:/bin/bash

and when you are done, the entry in /etc/shadow should look like:

root::13930:0:99999:7:::

If you just remove the lines, the root user no longer exists on your system, and you won't be able to log in as root.

HTH

Forrest
 
Old 05-19-2008, 04:54 AM   #8
Qbito
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
I went to resuce mode, loginin as root. I done mount /dev/hda8 /mnt, then chroot /mnt, then I try to do passwd root and:

Cannot open /dev/urandom for reading: No such file or directory

Cannot create salt for blowfish script
Error: pasword NOT changed
passwd: Authentication token manipulation error

Help Please !!!
 
Old 05-19-2008, 05:15 AM   #9
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
you sometimes need a /dev and /proc directory in a chrooted environment.

google for 'chroot setup' to find out how to create those directories.
 
Old 05-19-2008, 08:14 AM   #10
premnarayan
LQ Newbie
 
Registered: Jan 2008
Location: noida
Distribution: archlinux, slackware
Posts: 21

Rep: Reputation: 15
If you could mount hda8 using rescue disk to /mnt, you could delete that 'x' in the line for root in /mnt/etc/passwd [so that it looks like root::0:0:root:/root:/bin/bash]. It won't ask for root passwd now. Reboot.When back in your system, put that 'x' back and run passwd to create new passwd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 10:59 AM
How to set login and password and root password in suse 10.2 sirius57 SUSE / openSUSE 8 07-24-2007 10:51 AM


All times are GMT -5. The time now is 10:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration