How to reset forgotten root password with single user mode- RHEL7 | CentOS 7
ฝัง
- เผยแพร่เมื่อ 2 ม.ค. 2018
- 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"
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 ?
Same question here, i have seen multiple videos with different options.
Very pleasent explanation
What are the common errors we get if we are using nfs server and samba services..?
Can you prepare a video on this...?
Yes I will.
Is there any difference between single user mode or maintenance mode and emergency mode ?
Differences between Emergency and Rescue mode in Linux | RHEL7 |CentOS7 |Part-4th-cam.com/video/i3-CKvz3p64/w-d-xo.html
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.
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.
In single user mode not all commands will be available. Hence we need to use init.
@@tunetolinux4173 ok.Thank you for the update.
please upload RHEL7 certification videos
I take offline course for certification. Let me know if you or anyone interested in redhat ansible automation ! (DO407) certification course.