November 22, 2024, 05:06:25 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: I forgot my root password  (Read 11633 times)

Offline kennynoah

  • Linux Noob !
  • *
  • Posts: 6
I forgot my root password
« 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. :!:
« Last Edit: July 24, 2007, 07:37:22 AM by gauravbajaj »

Offline johntaylor

  • Linux Noob !
  • *
  • Posts: 19
Re: Forgot Root Password
« Reply #1 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.

Offline kennynoah

  • Linux Noob !
  • *
  • Posts: 6
I forgot my root password
« Reply #2 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

Offline johntaylor

  • Linux Noob !
  • *
  • Posts: 19
Re:
« Reply #3 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,

Offline robbo

  • New Member
  • Posts: 1
I forgot my root password
« Reply #4 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

Offline johntaylor

  • Linux Noob !
  • *
  • Posts: 19
I forgot my root password
« Reply #5 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,