----- Original Message -----
From: Santanu Chatterjee <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 19, 2001 10:23 AM
Subject: [LIH] (no subject)


>
> Hello everybody,
>
> In our college, our professor has forgotten the root
> password in one of the Linux computers. And I am asked to
> fix it.
>
> I read somewhere that entering linux using 'linux single'
> is the way to do so. Assuming I enter linux in single user mode,
> then what do I do.
> If I do
> # passwd
> then will it not ask for the old one, which, of course is forgotten ?

If it asks for the password then try doing this:

#passwd root

I have been able to fix many of such passwd losses and If it does not
satisfy you then do the following.

1. Logon using linux single option at lilo prompt.

2. go to /etc

3. edit passwd.conf using vi or something of the same kind.

4. the first line should be some what like this.

root : x : 0:0.......etc
          ^

5. note the x betw the : x :, delete the x.

6. Save the file and exit.

7. Reboot the system.

8. just type linux at lilo prompt for normal boot up.  i.e LILO: linux

9. When asked for login just enter root.

10. It will log you on without asking the passwd.

11. Now you may chang the passwd.

and one more thing, I am sure that #passwd root will work. the above given
is just an alternate method.

Regards

Virat Gohil



_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to