LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-05-2005, 12:00 AM   #1
amirdhagopal
LQ Newbie
 
Registered: Oct 2004
Location: Allahabad, India
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
Red face Lost root password


Dear Sir,
One of my friend has changed the root password of my system and I am unable to login as root I am using Suse 9 which uses GRUB Loader. I have edited the Kernel by adding 'single' at the end. Yet it is asking root password after loading.
I am new to Linux. Could any one help me from this.
 
Old 02-05-2005, 01:04 AM   #2
dylbyrt45
Member
 
Registered: Sep 2003
Location: Dallas
Distribution: Suse 9.1 pro
Posts: 37

Rep: Reputation: 15
Google is your friend. So is the search engine here. A google on "lost root password" returned 1,240,00 results. One of those should be helpful.
 
Old 02-05-2005, 02:12 AM   #3
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
Welcome to LinuxQuestions.org!

When you boot up your computer, do you see any options to select?

If so, you need to select "failsafe" which will put you automatically into a root console, where you can change the password with the "passwd" command.
 
Old 02-05-2005, 03:36 AM   #4
amirdhagopal
LQ Newbie
 
Registered: Oct 2004
Location: Allahabad, India
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by dylbyrt45
Google is your friend. So is the search engine here. A google on "lost root password" returned 1,240,00 results. One of those should be helpful.

Google is already my friend. I would like to correct ur reply.
It gave 1,350,000 results for Lost Root Password and
gave 4,640 results for "Lost Root Password".

Thanks for reply to my msg.
 
Old 02-05-2005, 04:15 AM   #5
amirdhagopal
LQ Newbie
 
Registered: Oct 2004
Location: Allahabad, India
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by student04
Welcome to LinuxQuestions.org!

When you boot up your computer, do you see any options to select?

If so, you need to select "failsafe" which will put you automatically into a root console, where you can change the password with the "passwd" command.


Yes, i am seeing options to select. I selected "Failsafe". . But it is ending at the login prompt. . I am able to login into my user login. But i couldn't enter into root. . I couldn't give root password, since i lost my password. I don't know what to do? Kindly suggest any more ways to this new bie.
Thanks for ur kind considerable reply.
 
Old 02-05-2005, 07:00 AM   #6
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
well, if you can boot from a cdrom, you could boot knoppix or maybe the first suse cd to get an root linux promt, then chroot to your linux harddisk partition and execute passwd

if that fails, try editing your /etc/shadow to set the root passwd to a known string (create this using md5)
 
Old 02-05-2005, 09:02 AM   #7
noestr
LQ Newbie
 
Registered: Feb 2005
Distribution: SuSe 9.2
Posts: 1

Rep: Reputation: 0
Hi

Enter single user mode by typing 'linux single' at the boot prompt.

then use the 'passwd root' command to change the password.

Robert
 
Old 02-05-2005, 02:55 PM   #8
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
Quote:
Originally posted by amirdhagopal
Yes, i am seeing options to select. I selected "Failsafe". . But it is ending at the login prompt. . I am able to login into my user login. But i couldn't enter into root. . I couldn't give root password, since i lost my password. I don't know what to do? Kindly suggest any more ways to this new bie.
Thanks for ur kind considerable reply.
failsafe should not bring you to a login, but an immediate terminal prompt, so that doesn't seem to make sense to me...

You could boot with knoppix, mount the drive, chroot to it, and then change the password that way... but i've never done it, just know that it would work.

 
Old 02-05-2005, 04:09 PM   #9
HenchmenResourc
Member
 
Registered: Mar 2004
Location: SLC, Utah
Distribution: OpenSUSE 12.2
Posts: 246

Rep: Reputation: 30
Put you SuSE CD in and boot from it as if you were doing an install. then chose to updat your system rather than doing a new install, add a program to your installation then accept, the YaST installer will add the selected program then will go through some basic setup questions and at the end it will ask you to input a new root password. when your done you should be boot up SuSE and everything should be the same except the one added program and a new working root password.

ADDITIONAL: because of this feature when your done you should go into your computers BIOS and turn off the ability to boot from your optical drive/s

Last edited by HenchmenResourc; 02-05-2005 at 04:24 PM.
 
Old 02-05-2005, 08:37 PM   #10
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Failsafe means different things in different systems, even different linux systems.

If you cannot solve this from the SuSE install CD (you should be able to), then use a live CD like knoppix to edit the shadow file. Look for the root line, and alter it like so:
Code:
root:$2a$05$YB/iuyn/cjYX7fRpspxDwOw6v73sVsCwkWwmeT4ifxc1r.sdAqmaG:12820:0:99999:7:::

root::12820:0:99999:7:::
This is a colon separated list. The random garbage that you see is actually your pasword hash. Get rid of it and it should let you log in with a blank password.

(This is not my real root entry by the way...)
 
Old 02-07-2005, 06:22 PM   #11
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
knoppix is your friend...
 
Old 02-07-2005, 06:36 PM   #12
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
Quote:
Originally posted by gd2shoe
Failsafe means different things in different systems, even different linux systems.
Really? I didn't know that... maybe it's because i've been used to mandrake for so long
 
Old 02-09-2005, 11:31 PM   #13
amirdhagopal
LQ Newbie
 
Registered: Oct 2004
Location: Allahabad, India
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by mikedeatworld
knoppix is your friend...

Where can i get knoppix. I think i can download knoppix. If I download, how can i boot from it. If I have to write it into CD, i don't have CD Writer. Help me my friend.
 
Old 02-10-2005, 12:09 AM   #14
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
www.knoppix.org is their site

yes you have to burn it to a cd, though you could order one off of the internet, too
 
  


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
root password is lost!!! :( alaios Linux - General 3 11-07-2005 05:48 AM
Lost root password zillah Solaris / OpenSolaris 10 05-24-2005 05:28 PM
lost root password papitu76 Mandriva 12 10-31-2004 10:40 AM
Lost root Password us06154 Linux - Newbie 17 08-14-2003 04:08 PM
Lost My root password !!! hitesh_linux Linux - General 33 04-14-2003 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:40 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