Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > SuSE Linux Help > Lost Root Password

Forgot Password?
 SuSE Linux Help   For help and discussions related to SuSE Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-29-2005   #1 (permalink)
Linux Newbie
 
Join Date: Jun 2005
Location: CA
Posts: 101
Lost Root Password

I recently changed my user password and my root password would not work anymore. I am sure it was my error but cannot figure out what I did. I will need some help on this because I am having trouble understanding some of the posts I found regarding recovering lost root passwords. I want to reset the root password. I don't understand how to get into single user mode. Any help is appreciated.

Here is some stuff I tried:

After booting with my install disk and choosing rescue system, I type:
Code:
passwd
I then get the error message:
cannot open logging plugin /usr/lib64/pwdutils/liblog-syslog.So.1: cannot open shared object file: no such file or directory
Changing password for root
user not known to the underlying authentication module.

Thanks
__________________
Linux is numero uno!
______________________
Core2Duo E8500 - 1 WD V-Raptor w winxp - 1 WD Raptor w Ubuntu - 1 WD Raptor Storage (Fat32) - EVGA 790i - GTX 280 - 4 gig HyperX - On board sound.
rj586b is offline  



Reply With Quote
Old 10-29-2005   #2 (permalink)
Linux Guru
 
budman7's Avatar
 
Join Date: Oct 2004
Location: Knee deep in Grand Rapids, Michigan
Posts: 3,242
Just before you select Suse as an option at boot.
Look at the "boot options" line.
Make sure that Suse is highlighted and on the boot options line put a "1" there.
That will boot you into runlevel 1, or single user mode.
__________________
Go RedWings
How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger

New users read The FAQ
budman7 is offline   Reply With Quote
Old 10-30-2005   #3 (permalink)
Linux Newbie
 
Join Date: Jun 2005
Location: CA
Posts: 101
I got into runlevel 1. Thanks

It asks me for the root password which I do not have. What should I do now

Thanks Again
__________________
Linux is numero uno!
______________________
Core2Duo E8500 - 1 WD V-Raptor w winxp - 1 WD Raptor w Ubuntu - 1 WD Raptor Storage (Fat32) - EVGA 790i - GTX 280 - 4 gig HyperX - On board sound.
rj586b is offline   Reply With Quote
Old 10-30-2005   #4 (permalink)
Linux Guru
 
AlexK's Avatar
 
Join Date: Feb 2005
Location: Earth
Posts: 3,380
SuSE usually protects its single user mode with the root password. What you are going to have to do is boot from a livecd such as knoppix, chroot into the SuSE partition and change the password there.

i.e Once knoppix or another livecd has loaded, execute the following commands in the terminal:
Code:
su -
mount /dev/hda1 /mnt/hda1  <-- assuming your suse root partition is /dev/hda1
chroot /mnt/hda1 /bin/bash
passwd
<enter new root password>
<enter new root password>
__________________
Life is complex, it has a real part and an imaginary part.
AlexK is offline   Reply With Quote
Old 10-30-2005   #5 (permalink)
Linux Newbie
 
Join Date: Jun 2005
Location: CA
Posts: 101
Just got Knoppix in the mail yesterday. Trying it now!
__________________
Linux is numero uno!
______________________
Core2Duo E8500 - 1 WD V-Raptor w winxp - 1 WD Raptor w Ubuntu - 1 WD Raptor Storage (Fat32) - EVGA 790i - GTX 280 - 4 gig HyperX - On board sound.
rj586b is offline   Reply With Quote
Old 10-30-2005   #6 (permalink)
Linux Newbie
 
Join Date: Jun 2005
Location: CA
Posts: 101
I did not succeed however Knoppix is really cool. Would you mind taking a look at what I did My hard disk is sda2.
Thanks

root@0[~]# mount /dev/sda2 /mnt/sda2
mount: /dev/sda2 already mounted or /mnt/sda2 busy
mount: according to mtab, /UNIONFS/dev/sda2 is already mounted on /mnt/sda2
root@0[~]# chroot /mnt/sda2 /bin/bash
chroot: cannot run command `/bin/bash': Exec format error
root@0[~]# chroot /mnt/sda2 /bin/bash passwd
chroot: cannot run command `/bin/bash': Exec format error
root@0[~]# passwd
Enter new UNIX password:
Retype new UNIX password:
Sorry, passwords do not match
passwd: Authentication information cannot be recovered
root@0[~]# mount /dev/hda1 /mnt/hda1
mount: /dev/hda1 already mounted or /mnt/hda1 busy
mount: according to mtab, /UNIONFS/dev/hda1 is already mounted on /mnt/hda1
root@0[~]# mount /dev/sda2 /mnt/sda2
mount: /dev/sda2 already mounted or /mnt/sda2 busy
mount: according to mtab, /UNIONFS/dev/sda2 is already mounted on /mnt/sda2
root@0[~]# chroot
chroot: too few arguments
Try `chroot --help' for more information.
root@0[~]# chroot /mnt/sda2 /bin/bash
chroot: cannot run command `/bin/bash': Exec format error
root@0[~]#
__________________
Linux is numero uno!
______________________
Core2Duo E8500 - 1 WD V-Raptor w winxp - 1 WD Raptor w Ubuntu - 1 WD Raptor Storage (Fat32) - EVGA 790i - GTX 280 - 4 gig HyperX - On board sound.
rj586b is offline   Reply With Quote
Old 10-30-2005   #7 (permalink)
Linux Guru
 
AlexK's Avatar
 
Join Date: Feb 2005
Location: Earth
Posts: 3,380
try chroot /mnt/sda2 instead of chroot /mnt/sda2 /bin/bash
__________________
Life is complex, it has a real part and an imaginary part.
AlexK is offline   Reply With Quote
Old 10-30-2005   #8 (permalink)
Linux Newbie
 
Join Date: Jun 2005
Location: CA
Posts: 101
Quote:
try chroot /mnt/sda2 instead of chroot /mnt/sda2 /bin/bash
This one didn't work either.

Quick question I paid retail value for SUSE 9.3. Will they give me the 10.0 upgrade? If I am hosed on this one, I may just download the eval copy or buy the retail. What do you think?

Thanks Again
__________________
Linux is numero uno!
______________________
Core2Duo E8500 - 1 WD V-Raptor w winxp - 1 WD Raptor w Ubuntu - 1 WD Raptor Storage (Fat32) - EVGA 790i - GTX 280 - 4 gig HyperX - On board sound.
rj586b is offline   Reply With Quote
Old 10-30-2005   #9 (permalink)
Linux Guru
 
AlexK's Avatar
 
Join Date: Feb 2005
Location: Earth
Posts: 3,380
No they won't give you a free upgrade to 10, you either have to download it, or pay retail for it.

Looking at your first post, it seems like some password changing utility in SuSE has become corrupted or something similar. I would now suggest that you perform a "Repair Install" by booting from your present 9.3 disks.
__________________
Life is complex, it has a real part and an imaginary part.
AlexK is offline   Reply With Quote
Old 10-31-2005   #10 (permalink)
Linux Newbie
 
Join Date: Jun 2005
Location: CA
Posts: 101
That sounds like a plan I need more intall experience anyway. I will backup my important docs and fun pictures first.

Will I need to backup my install RPMs and drivers (i.e. video driver) or does it keep everything the same
__________________
Linux is numero uno!
______________________
Core2Duo E8500 - 1 WD V-Raptor w winxp - 1 WD Raptor w Ubuntu - 1 WD Raptor Storage (Fat32) - EVGA 790i - GTX 280 - 4 gig HyperX - On board sound.
rj586b is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:30 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1