LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2015, 12:31 AM   #1
rochs01
LQ Newbie
 
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
old computer with redhat 6.2 forgot password


There has to be a way to log in right? I have tried every login I can think of. It has been sitting for several years...
 
Old 09-27-2015, 12:59 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Hi and welcome to LQ.
Is there any reason not to just install a more recent version of redhat? It seems to be version 7 now.
jdk
 
Old 09-27-2015, 01:10 AM   #3
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by jdkaye View Post
Is there any reason not to just install a more recent version of redhat? It seems to be version 7 now.
Hi...

I'm wondering if the OP means the version from 2000.

Regards...
 
Old 09-27-2015, 01:39 AM   #4
tomwest
Member
 
Registered: Aug 2013
Distribution: debian
Posts: 63

Rep: Reputation: Disabled
Well, if it's redhat 6.2, (from 2000) this is what one can do: since lilo boots directly into Linux (unless there is a prompt or delay config in /etc/lilo.conf), hold down the Shift key whilst starting up the machine. This will force the display of the "boot:" prompt at which you can insert "linux init=/bin/sh rw" without the quotes. Replace "linux' with the label of the current kernel if it's not called linux. Hit enter and it should boot to a shell. If you delete all of root's passwords in /etc/passwd /etc/passwd- /etc/shadow /etc/shadow- as the edit, and then run "mount -o remount,ro /", "sync" and "/sbin/reboot -f", you can do "su -" when the machine comes up again and root should appear without need for a password after which you can run passwd to get a new password. If you don't know the label of the current kernel, then you can use a rescue disk to boot up in ram, mount the / partition and and read the /etc/lilo.conf file to get it. And, the password is in the second field in the passwd files. In the shadow files, it's long. In all cases, delete all characters and numbers and leave nothing in that field, then save the files.

Last edited by tomwest; 09-27-2015 at 01:52 AM.
 
Old 09-27-2015, 02:16 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
yes the name change in 2003
RH6
RH7
RH8
RH9
--2003 ---
RHEL2
RHEL3
RHEL4
--
RHEL7

i would beet the current RHEL6
BUT 6.2 is old

the current 6 is RHEL 6.7

if the computer dose NOT have a encrypted boot partition
boot into single user mode ( runlevel 1) and change the password

if it dose -SHOULD have to stop single user boot
boot into single user mode and type in the secret password that was set up

or
pull the drive out and mount it on a second RHEL6 computer and edit the password file


now if the drive IS using full drive encryption

figure out the password
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forgot password srinivasmmdl Linux - Newbie 5 09-30-2011 10:17 AM
Forgot password. Please help. larryalk Slackware 4 05-05-2010 04:35 AM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Forgot root password for Redhat Enterprise linux geordzilla Linux - Newbie 6 12-20-2005 01:43 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration