Reset Forgotten Root Password in Linux | Reset Root Password on RHEL, CENTOS, ROCKY (Linux)

Описание к видео Reset Forgotten Root Password in Linux | Reset Root Password on RHEL, CENTOS, ROCKY (Linux)

Hello friends. I'm Dipankar Roy. Please welcome to my channel and watch my video. If you like the video, please like and comment. Must subscribe to get the next video.

How we can reset our root password in our Linux machine.
************************************************************
Follow the below steps

1. Reboot the system and, on the GRUB 2 boot screen, use the down arrow key on your keyboard to select rescue mode. Press the e key to interrupt the boot process.

2. Go to the end of the line that starts with linux.

3. Add rd.break to the end of the line that starts with linux.

4. Press Ctrl+x to start the system with the changed parameters.

5. Press the Enter key to enter maintenance mode.

The sh-5.1# prompt appears.

6. Remount the file system as writable:

mount -o remount,rw /sysroot

7. Enter the chroot environment:

chroot /sysroot

8. Reset the root password:

passwd

9. Enable the SELinux relabeling process on the next system boot:

touch /.autorelabel

10. Exit the chroot environment:

exit

11. Exit maintenance mode:

exit

*****************************************************************

Contact:
*********
Email: roydipankar1993dnk @gmail.com

Outlook: [email protected]


Follow me On Social Media Platforms:
****************************************
Facebook Link: https://www.facebook.com/profile.php?...

Instagram Link:   / dipankar.dipu.roy  

Linkedin Link:   / dipankar-roy-a874211a8  

Комментарии

Информация по комментариям в разработке