LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-14-2005, 02:27 AM   #1
nimaelec1
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
forgot root passwd urgent


Hi,

i have a problem make me in troble. i need root password. i installed redhat 7.2 but i cant login as root user. it is urgent for me. meanwhile i only installed text mode. not graphic.

many thanks
 
Old 02-14-2005, 03:07 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
Use a linux rescue disk. Boot into rescue mode and mount the filesystem that has /etc on.

cd to /etc
chroot . /bin/bash
run the passwd command
cd back to the rescue disk
umount /etc filesystem
reboot
 
Old 02-14-2005, 03:09 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
if you still have the cdroms, boot the first one and pick rescue mode. see if there is a utility to change the password from there. if not, we'll tell you some more ways.
 
Old 02-14-2005, 04:35 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you have the installation disk, run it
1) at the boot prompt enter "linux-rescue"
2) enter details about your root partition then do "chroot /mnt/sysimage"
3) run "passwd" and enter a new root password.
4) reboot your system.
 
Old 02-17-2005, 11:37 AM   #5
binny_07
LQ Newbie
 
Registered: Feb 2005
Location: India , New Delhi
Posts: 5

Rep: Reputation: 0
Cool

************* if u have not bootable media u can try this ************

At the grub press "a" on keyboard and after getting the grub prompt press <spacebar>1

it should look like this
<grub> 1
and then press enter
now u are residing in the kernel
u can change the password from here

Last edited by binny_07; 02-17-2005 at 11:39 AM.
 
  


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 my root passwd k1ll3r_x SUSE / openSUSE 23 04-06-2005 12:44 PM
forgot root passwd sanu Linux - Newbie 2 09-21-2004 02:07 AM
forgot root passwd sanu Linux - Newbie 1 09-20-2004 04:45 AM
FORGOT root passwd WannaLearnLinux Linux - Newbie 5 03-30-2004 12:36 AM
I have forgot my linux root passwd shankha Linux - Security 2 09-13-2003 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:15 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