LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   forgot root passwd urgent (https://www.linuxquestions.org/questions/red-hat-31/forgot-root-passwd-urgent-289939/)

nimaelec1 02-14-2005 02:27 AM

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

Frustin 02-14-2005 03:07 AM

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

whansard 02-14-2005 03:09 AM

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.

reddazz 02-14-2005 04:35 AM

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.

binny_07 02-17-2005 11:37 AM

************* 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


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