recovering root password in Suse9

From: Timur (blackdir_at_yahoo.com)
Date: 01/31/04


Date: Sat, 31 Jan 2004 10:03:05 GMT

A friend of mine forgot his root password on a SUSE 9 installation (but he
still remember the one of his personal account) and prior for him to
reinstall the system I offered my help to recover it, since it could be a
way to learn more about default authentication mechanism in Linux (and SUSE
9).

I booted his PC with a Live CD (I used Knoppix since I had it with me) and
after mounting his etx3 partition (rw) I modified the shadow file by
putting * instead of the encoded root password. I rebooted but still I was
not able to become superuser (su - was still asking a password and NULL was
not working).

I thought that the reason was related to some PAM configuration not allowing
a blank password, and I added in the /etc/pam.d/shadow file the paramiter
nullok. I rebooted but this also didn't work.

Is anyone able to describe me the std auth mechanism in SUSE 9 sothat I can
modify it in order to re-log as root, change his password and but
shadow/pam back to the original state?

thanks a lot & regards,
Timur



Relevant Pages

  • Re: [SLE] Destjet printer app has a bug? Signal 11
    ... >>thru Konqueror and kwrite but cant get it to list anything. ... > Enter your root password at the prompt, and choose open in kwrite's file ... On which version of SuSE is this? ...
    (SuSE)
  • Re: Samsung ML-2010 printer
    ... > I'm using Suse 10.0, the CD that came with my printer works to a point! ... > The installation seems to work fine until I click on add printer then it ... > asks me for my root password and does not recognize my root password. ... I didn't bother with the driver CD, just used the standard driver that came ...
    (alt.os.linux.suse)
  • Re: Yast has stopped working
    ... I have opensuse 1.0 installed on my laptop. ... Are you talking about SUSE 10.0, ... After I tyep the root password the prompt disappears and NOTHING ...
    (alt.os.linux.suse)
  • [SLE] Re: Gnome and SUSE 9!
    ... That's always been there - I've been a Gnome user since I started using SuSE ... especially nice that you can set buttons up to launch gnomesu with the app ... name already filled in, so that you just have to enter the root password, as ...
    (SuSE)
  • Re: P670 partition...lost root password :/
    ... > Trying to boot into SMS and then turning to a single user prompt is no ... > solution as the single user mode asks for the root password:( ... > Any way to get to a shell so i can either use passwd to change root ... > the shadow file is being used?) ...
    (comp.unix.aix)