nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Recovering redhat LINUX (RHEL) root password

This is a discussion on Recovering redhat LINUX (RHEL) root password within the Linux software forums, part of the Linux Getting Started category; Hello, Also i want to know the procedure for recovering redhat root password. Sorry for new question but i am ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-12-2006, 02:11 AM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 151
Rep Power: 4
raj is on a distinguished road
Default Recovering redhat LINUX (RHEL) root password

Hello,

Also i want to know the procedure for recovering redhat root password.

Sorry for new question but i am new to linux

hope some one point out or help out

Regards

RAJ
SYS ADMIN, INDIA
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-12-2006, 04:25 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default

Boot with the install CD/DVD and choose linux rescue.

It will bring you to the sh3.0# prompt.

The partitions in your harddisk are mounted under /mnt/sysimage.

You can either go to this directory and issue the following command

Code:
cd /mnt/sysimage
chroot .                                  # ( see the (.) dot here)
passwd 
New password for root
Retype New password
or do this
Code:
cd /mnt/sysimage
cd etc
vi passwd  # ( you can edit the root informantion by removing the x in the root:x:..........................)
If you use the second option, next time you login, it will not prompt for the password and you can change the root password after login.

I am not sure if this setup works in harddisks setup with LVM and/or RAID partitions.

ricc
Reply With Quote
  #3 (permalink)  
Old 07-13-2006, 02:15 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

@ricc, good work

@Raj, more urls from our site to help you out:
http://www.cyberciti.biz/faqs/2006/0...t-password.php
http://www.cyberciti.biz/nixcraft/vi...oot-loader.php
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #4 (permalink)  
Old 07-14-2006, 06:02 PM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 151
Rep Power: 4
raj is on a distinguished road
Default

thanks bhai. Sys admin is a pain. lol

anyone here from hyderabad????
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
how to change root password sandromax Solaris/OpenSolaris 4 10-11-2007 03:43 AM
RHEL - redhat linux pen drive mount command harshala09 Linux hardware 4 09-03-2007 08:34 PM
Redhat Enterprise Linux RHEL - Start service on boot chimu Getting started tutorials 0 01-26-2007 08:29 PM
Allowing root login in RHEL 4 ricc Linux software 3 09-12-2006 04:28 PM
I forgot my root password, how do I get into my system? toor Linux software 2 07-06-2006 12:59 PM


All times are GMT +5.5. The time now is 06:15 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36