Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jun 2005
    Location
    CA
    Posts
    104

    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! I have taken up Archery.
    ______________________

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,901
    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.
    If you want to learn more about linux take a linux journey
    https://linuxjourney.com/
    Use CODE tags when posting output of commands. Thank you.
    https://www.linuxcounter.net/cert/608410.png

  3. #3
    Linux Newbie
    Join Date
    Jun 2005
    Location
    CA
    Posts
    104
    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! I have taken up Archery.
    ______________________

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    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.

  6. #5
    Linux Newbie
    Join Date
    Jun 2005
    Location
    CA
    Posts
    104
    Just got Knoppix in the mail yesterday. Trying it now!
    Linux is numero uno! I have taken up Archery.
    ______________________

  7. #6
    Linux Newbie
    Join Date
    Jun 2005
    Location
    CA
    Posts
    104
    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! I have taken up Archery.
    ______________________

  8. #7
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    try chroot /mnt/sda2 instead of chroot /mnt/sda2 /bin/bash
    Life is complex, it has a real part and an imaginary part.

  9. #8
    Linux Newbie
    Join Date
    Jun 2005
    Location
    CA
    Posts
    104
    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! I have taken up Archery.
    ______________________

  10. #9
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    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.

  11. #10
    Linux Newbie
    Join Date
    Jun 2005
    Location
    CA
    Posts
    104
    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! I have taken up Archery.
    ______________________

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •