lost my password

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

JimZ

Thread Starter
Joined
Jun 26, 2003
Messages
174
I lost my password for root and my log on name. Someone please help. I have redhat 9. Is there any way i can log in?
 

Squashman

Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
At the bootloader prompt you can type linux single.

http://www.techtv.com/screensavers/answerstips/story/0,24330,2246389,00.html

Or

You can boot off of LOAF (Linux on a Floppy) disk and edit the /etc/shadow file.

(1) Download one of the mini-linux distributions (http://www.toms.net/rb/ or http://www.kernel.org/pub/dist/superrescue/v2/)
and boot up off that.

(2) manually mount the partition that contains the root file systems

(3)Find and edit the file /etc/shadow

FYI: Given a shadow file entry like:

root:$1$7Mâ5ºl8o$qUT7nwuswQLwNObmc.r8a1:11874:0:99999:7:::

changing that to read:

root::11874:0:99999:7:::

This will remove root's passwd. You are basically removing everything between the first set of colons.

When you rebooted your system you can set a password for root with 'passwd root'.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top