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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > SuSE Linux Help
Reload this Page Lost Root Password
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

SuSE Linux Help For help and discussions related to SuSE Linux

Reply
 
Thread Tools Display Modes
Old 10-29-2005   #1 (permalink)
rj586b
Just Joined!
 
Join Date: Jun 2005
Location: CA
Posts: 94
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!
______________________
AMD 64 3500 - 2 WD Raptors w Linux - 1 Maxtor IDE w winXP - Gigabyte 3DI Motherboard + 6600 GT SLI (SLI not working in Linux) - 512 PC3200 - On board sound - Logitech 4.1 - WinTV PVR.
rj586b is offline   Reply With Quote
Old 10-29-2005   #2 (permalink)
budman7
Super Moderator
 
budman7's Avatar
 
Join Date: Oct 2004
Location: Knee deep in Grand Rapids, Michigan
Posts: 3,243
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)
rj586b
Just Joined!
 
Join Date: Jun 2005
Location: CA
Posts: 94
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!
______________________
AMD 64 3500 - 2 WD Raptors w Linux - 1 Maxtor IDE w winXP - Gigabyte 3DI Motherboard + 6600 GT SLI (SLI not working in Linux) - 512 PC3200 - On board sound - Logitech 4.1 - WinTV PVR.
rj586b is offline   Reply With Quote
Old 10-30-2005   #4 (permalink)
AlexK
Linux Guru
 
AlexK's Avatar
 
Join Date: Feb 2005
Location: Earth
Posts: 3,381
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)
rj586b
Just Joined!
 
Join Date: Jun 2005
Location: CA
Posts: 94
Just got Knoppix in the mail yesterday. Trying it now!
__________________
Linux is numero uno!
______________________
AMD 64 3500 - 2 WD Raptors w Linux - 1 Maxtor IDE w winXP - Gigabyte 3DI Motherboard + 6600 GT SLI (SLI not working in Linux) - 512 PC3200 - On board sound - Logitech 4.1 - WinTV PVR.
rj586b is offline   Reply With Quote
Old 10-30-2005   #6 (permalink)
rj586b
Just Joined!
 
Join Date: Jun 2005
Location: CA
Posts: 94
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!
______________________
AMD 64 3500 - 2 WD Raptors w Linux - 1 Maxtor IDE w winXP - Gigabyte 3DI Motherboard + 6600 GT SLI (SLI not working in Linux) - 512 PC3200 - On board sound - Logitech 4.1 - WinTV PVR.
rj586b is offline   Reply With Quote
Old 10-30-2005   #7 (permalink)
AlexK
Linux Guru
 
AlexK's Avatar
 
Join Date: Feb 2005
Location: Earth
Posts: 3,381
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)
rj586b
Just Joined!
 
Join Date: Jun 2005
Location: CA
Posts: 94
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!
______________________
AMD 64 3500 - 2 WD Raptors w Linux - 1 Maxtor IDE w winXP - Gigabyte 3DI Motherboard + 6600 GT SLI (SLI not working in Linux) - 512 PC3200 - On board sound - Logitech 4.1 - WinTV PVR.
rj586b is offline   Reply With Quote
Old 10-30-2005   #9 (permalink)
AlexK
Linux Guru
 
AlexK's Avatar
 
Join Date: Feb 2005
Location: Earth
Posts: 3,381
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-30-2005   #10 (permalink)
rj586b
Just Joined!
 
Join Date: Jun 2005
Location: CA
Posts: 94
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!
______________________
AMD 64 3500 - 2 WD Raptors w Linux - 1 Maxtor IDE w winXP - Gigabyte 3DI Motherboard + 6600 GT SLI (SLI not working in Linux) - 512 PC3200 - On board sound - Logitech 4.1 - WinTV PVR.
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 07:24 PM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0