Page 87 - RHEL8 BOOK
P. 87
Trouble Shooting
Recovering Root Password
Password
Root Password can be recovered in a
Specialized troubleshooting mode (i.e. init 1)
init 1 level provides a shell (i.e. sh) without Logging in.
Procedure
Restart the system
In the splash screen Select RedHat Enterprise Linux
Press e
Select Kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/rhgb quiet
Press e to edit
Edit Kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/rhgb quiet 1
Press Enter
Press b to boot with the selected run level
directly you will get shell prompt to assign the root password
sh-3.00#passwd root
Assigning Grub Password
[root@comp1~]# grub-md5-crypt >> /boot/grub/grub.conf
[root@comp1~]# vi /boot/grub/grub.conf
hidden menu
password --md5 <password>
title Red Hat ------
Recovering Grub Password
Boot the System in Rescue Mode
#chroot /mnt/sysimage
# vi /boot/grub/grub.conf
Remove line from /boot/grub/grub.conf
hidden menu
password -- md5 <password>
title Red Hat ------
Other Configurations
To configure printer
[root@comp1~]# system-config-printer
To configure modem
[root@comp1~]# system-config-network-druid
To view the process
[root@comp1~]# ps –aux
To kill a specific process
[root@comp1~]# kill -9 <process id>
To view CPU usage by all process
[root@comp1~]# top
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
87