- on login while selecting redhat we face Rescue kernel
- before it starts loading press e
- move to line
- press
end
key - > move to end of line
- write, to stop selinux - > selinux stops things against security
- press ctrl + x - > it starts the system
- it shows
Generating "/run/initram..."
mount -o remount,rw /sysroot/ # this command is to be written as it is
chroot /sysroot/ # tab works well in this shell
- you will be logined as root in sh shell
- passwd root
- change password as you wish
- exit - > takes to switch_root
- exit - > restart the system (wait for some time)
- IMPORTANT - > now if system is rebooted by
- to check security content of all files
- unlabelled means Selinux will not allow to use system
- password of root will be seen in shadow file in /etc/shadow
restorecon /etc/shadow
command to restore security of file
- rerun to check
- to restart the system in graphical mode, write
startx