LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-15-2005, 10:09 AM   #1
geordzilla
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Rep: Reputation: 15
Question Forgot root password for Redhat Enterprise linux


Hi

I'm running redhat Linux Enterprise Version 3 on my notebook and have forgotten my root password. Therefore I'm unable to things requiring root permission. How can I retrieve it without having to do a reinstall?

regards

geordzilla
 
Old 12-15-2005, 10:25 AM   #2
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
If you can get your hands on a knoppix liveCD (or any liveCD), then resetting your root password will be a piece of cake.

Quote:
You can change password by chrooting into installed linux and running passwd. You may need to mount your linux read-write:

* mount -o remount,rw /dev/hd.. /mnt/hd..
* chroot /mnt/hd..
* passwd root

Peace V

Here's a link: http://www.knoppix.net/wiki/Rescue_F....2FLinux.21.3F
 
Old 12-15-2005, 10:38 AM   #3
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 500

Rep: Reputation: 56
Or boot the os in single user mode (init 1)

then at the prompt use passwd to reset the password.
 
Old 12-15-2005, 12:25 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by teebones
Or boot the os in single user mode (init 1)

then at the prompt use passwd to reset the password.
Hello there,
But how to boot the system in single user mode....???

suppose if the 'init' level is set such that it goes directly into GUI, then when we are suppose to switch the mode ?
moreover if it comes to console instead of GUI.....then also we have to give the login and passwd first...
If a user is logging with a user account other than "root" .....then will he get the permission to edit /etc/inittab ???

regards
 
Old 12-15-2005, 12:55 PM   #5
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 500

Rep: Reputation: 56
hello,

- To boot into single-user mode from GRUB, do the following from
the GRUB menu screen:

1. Select the desired kernel.

2. Press the 'e' key to edit that entry.

3. Use the arrow keys to navigate to the kernel line
(for example: kernel /vmlinuz-2.6.x-x ro root=/dev/hdx2)

4. Press the 'e' key to edit the line.

5. Add the argument 'single' to the end of the line and
press return.

6. Press the 'b' key to boot.


cheers,
 
Old 12-15-2005, 04:33 PM   #6
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
Thanks teebones


Peace V
 
Old 12-20-2005, 01:43 AM   #7
geordzilla
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Original Poster
Rep: Reputation: 15
Question Forgot root pass word

Hello

I read teebones' suggestion on single-user mode from GRUB. I still don't get it. How do I get to the GRUB menu screen? Do I use the installation CD to get to GRUB? TAnx.

geordzilla
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 root password k1ll3r_x Suse/Novell 6 05-05-2005 03:37 PM
Forgot root password maxboost Linux - General 3 03-21-2005 02:43 AM
forgot root password ust Linux - General 5 07-03-2004 01:39 AM
forgot root password jeempc Slackware 14 02-08-2004 08:02 AM
forgot root password juno Linux - General 7 05-11-2003 08:05 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration