LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-17-2004, 01:28 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
forgot root password


If I forgot the RH linux root password , how to get it back ? thx
 
Old 03-17-2004, 01:47 AM   #2
ritesh_aladdin
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Rep: Reputation: 0
if you are using lilo as boot loader-----------

when system startup and shows the linux splash image of lilo
press ctrl-x , it will prompt 'boot : '
type 'linux single'
system will boot in single user mode
ypu will get root prompt without asking password , from where you can change the password of root by executing 'passwd; command

if you are using grub boot loader-------
select linux in OS menu from grub screen and press 'e'
it will open edit window, then choose kernel image and again press 'e' and append the words 'linux single ' and press 'b'

system will boot in single user mode , then you can change the password of root as previous steps

--ritesh
 
Old 03-17-2004, 04:35 AM   #3
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
i can give you another advice.Reboot your machine and insert RH disc1,then run linux rescue,step by step,finally enter rescue mode,run passwd root and you can change your password for root.
 
Old 03-17-2004, 05:28 AM   #4
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
Or, put in any live disc that'll run a distro off the CD, mount your hard drive, chroot into it, and then run the passwd command...
 
Old 07-03-2004, 01:17 AM   #5
mendiratta
LQ Newbie
 
Registered: Jul 2004
Location: bangalore
Distribution: linux 9.0
Posts: 28

Rep: Reputation: 15
i was also facing the same problem. but inspite of doing that it is not going to root. it went into the prompt mode then i entered the passwd and the new root passwd. tell me something

hope to have quick reply
thanx and regard
ramesh
 
Old 07-03-2004, 01:39 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Ramish, unless lilo uses password protection and doesn't allow you to enter kernel options, the advice given by ritesh_aladdin is the best. Booting into single mode, you are root already.
Your paths are correct and you don't have to chroot to where your root directory is normally mounted. This is correct to begin with, and booting into single mode is a lot faster.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgot root password muru Linux - Security 5 09-26-2005 12:37 AM
forgot root password ali_hammad Linux - Newbie 3 03-09-2005 10:46 AM
forgot root password ali_hammad Linux - Security 4 03-08-2005 02:44 PM
Forgot root password Jay Smith Linux - Newbie 15 10-12-2004 06:23 PM
Forgot Root Password Ironpaws Linux - Software 6 07-03-2004 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:26 AM.

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