What do I do to reset the root password in #Linux?

preview_player
Показать описание
How to reset root password in #Linux

Resetting the root password in Linux can be done by following these steps:

1. Reboot your Linux system and wait for the boot loader to appear.
2. Use the arrow keys to highlight the Linux operating system you want to boot into, and then press the 'e' key to edit the boot parameters.
3. At the end of this line, add the word 'init=/bin/bash'. This will start the system in single-user mode with a root shell.
4. Press the 'Ctrl' and 'X' keys together to start the system in single-user mode.
5. Once the system has booted into the root shell, type the command 'passwd' to change the root password.
Enter your new root password twice to confirm.
6. After changing the root password, create the autorelabel file in the root directory by using the touch command.
touch /.autorelabel
7. Now run, exec /sbin/init to switch to multi-user mode and reboot the system.
8. Log in to your system as the root user with your new password.

Note that these steps may vary slightly depending on the Linux distribution you are using.

PLEASE SUBSCRIBE :)
PLEASE HIT LIKE IF IT HELPED :)

Drop me your feedback and comments.

That's all for now.

If this video helped you in any way, please like share and subscribe!

Thank you!!!
Рекомендации по теме
Комментарии
Автор

check out my channel for LINUX TUTORIALS 😎💯
LIKE and SUBSCRIBE!!!

lazysysad
Автор

Bro your the best thank you 🎉🎉 you got a new sub

PRIYAGUPTA-tfpt
Автор

Sir Whatever i type or just hit the keyboard button nothing goes typed on screen... Wht to do now..?... Even the courser is not showing and moving at this time ... Normally the curser is moving but.. At this time when I willing to edit the command or enter the Nothing is working... Not curser nor a touchpad nor a mouse 😢😢😢 help me please...

mysteriousmysky
Автор

ye for centos 5 and below new have grub2😊

Zaaaarrrriiii
Автор

This video is for the one who already know how to do it.

shamimtalha
visit shbcf.ru