Computing.Net > Forums > Linux > Forgotten Password in RedHat Linux

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Forgotten Password in RedHat Linux

Reply to Message Icon

Name: j_m_arnold
Date: December 12, 2002 at 07:16:27 Pacific
OS: Redhat Linux 7.x
CPU/Ram: 64 mb sdram
Comment:

I seem to have forgot my password to log in to the GUI of Red Hat Linux. Correct me if I'm wrong but the username root in Linux is the same as administrator in Windows. Does anyone have any suggestions or anything as to how I can retreive my password. Paswword Crack? Password Sniffer? Also, If I have to go through the command line to do this, how do I get it to boot to command mode instead of the GUI? Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: malkowich
Date: December 12, 2002 at 08:03:34 Pacific
Reply:

at boot prompt/selection

with LILO

press Ctrl+X to got to console.

Type - 'linux single'
passwd username, update the password

with GRUB

select your kernel

press A to append
add 'linux single' to the kernel line

passwd username, update the password


REBOOT

with both of these methods you will be dropped to a ROOT SHELL, use extreme caution.



0

Response Number 2
Name: 3Dave
Date: December 12, 2002 at 08:04:12 Pacific
Reply:

You want to use a boot/root disk, mount your root partition and edit your /etc/passwd file. More info on how to do this can be given if required.

What you are looking for is a line like:
root:Hkhj7865gGqwty:0:0:root:/:/bin/sh
and change it to
root::0:0:root:/:/bin/sh
(ie remove the Hkhj7865gGqwty bit)

Reboot normally and you now have a blank root password (don't forget to change it once you've got in!)


To boot into text mode, at the lilo prompt type:
linux init 3


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Forgotten Password in RedHat Linux

mp3 in redhat linux 9 www.computing.net/answers/linux/mp3-in-redhat-linux-9/20702.html

inetd.conf file in redhat linux 8.0 www.computing.net/answers/linux/inetdconf-file-in-redhat-linux-80/20083.html

TAPI application in redhat linux www.computing.net/answers/linux/tapi-application-in-redhat-linux/20611.html