How to reset forgotten root password with single user mode- RHEL7 | CentOS 7
This video is show how to login into single user mode and reset root password in RHEL7. A step by step procedure for beginner to “how to login to single user mode and reset password in rhel7”
centos 7
From 4:00 to 4:35, you have run init command to reboot the system, can't we run "reboot" command itself to reboot the system?
Hope you answer it.
Thank you for the video.
Very pleasent explanation
Why need to use in init=/bin/bash ?, second question : I saw different method for root password reset : rd.break console=tty in linux16 line and after that control X and change like mount -o remount,rw /sysroot; chown /sysroot;passwd root;touch /.autorelabel ; exit; exit, why this much need to do in RHEL 7 ?
When you change root password the shadow file is modified with incorrect SElinux context.
Either create a hidden file under root directory #touch /.autorelabel , on the next boot it will create a correct context . Note booting may take time if size of the disk is huge.
Other way around you can break the booting process, also assign enforcing=0 which makes SElinux temperory permissive so later you can restore the correct context on /etc/shadow and put back SElinux in enforcing mode.
Is there any difference between single user mode or maintenance mode and emergency mode ?
please upload RHEL7 certification videos
What are the common errors we get if we are using nfs server and samba services..?
Can you prepare a video on this…?