How To Reset Root Password In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Boot the system into Single User Mode:
Reboot your Linux system, and at the GRUB boot menu, select the kernel you would like to boot and press ‘e’ to edit the commands before booting.
Add the word single between the words ‘quiet’ and ‘splash’, and press F10 to boot into single user mode.
2. Reset root password:
Once in single user mode, run the command ‘passwd root’ to reset root password.
3. Reboot your system:
Once the root password has been reset, reboot the system using the command ‘reboot’. When the system reboots, you can now log in as root using the new password.