Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Others => Miscellaneous => Topic started by: kennynoah on January 19, 2004, 10:22:34 AM

Title: I forgot my root password
Post by: kennynoah on January 19, 2004, 10:22:34 AM
how do i recover or change my password, i use redhat 7.3 and i have forgotten my password. :!:
Title: Re: Forgot Root Password
Post by: johntaylor on January 19, 2004, 10:30:45 AM
Type 'linux single' at the lilo or grub boot prompt. The computer should boot up and come to a command prompt (eg. bash etc). Type the following:

bash#: 'passwd root'

If that doesn't work or you do not use Grub or Lilo please tell me. I use it mainly because I cant boot from the SCSI drive.
Title: I forgot my root password
Post by: kennynoah on January 19, 2004, 12:38:13 PM
Thanks so much, I was able to change the passwd but i still cant log in, when i type in the login name and passwd it dosent promt me that its wrong it just goes back to the login name.

lab_linux login: xyz
password: XXX

after some seceonds it goes back to;

lab_linux login: xyz
Title: Re:
Post by: johntaylor on January 19, 2004, 11:59:41 PM
Hmm. I will have a look in my big linux book for Turbo Linux server - that's were I got the change root password thing from. :)

Are you able to log in as root even? You might of got the password or username wrong when you first made the user. I have done that a couple of times during installation because of my quick typing errors.

No Problems,
Title: I forgot my root password
Post by: robbo on May 14, 2004, 03:11:35 PM
Just thought i'd post in an old thread, I have this same problem.. I am using Mandrake 10.0 and i cant login to any users (forgot all passwords :/..) I dont use Lilo or Grub

Glad if u could help
Title: I forgot my root password
Post by: johntaylor on May 15, 2004, 07:02:22 AM
is the username root or a normal user.

If it is a normal user do the following:

1. Log on as root.
2. type 'passwd <username>'
3. Follow the prompts.

OR:

1. Start up by typing 'linux single' at the boot prompt
2. At the command prompt, type 'passwd <username>'
3. Follow the prompts
4. Reboot the computer normally.

Cheers,