How To Retrieve 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.
If you have forgotten or lost the root password in Linux, it can be retrieved or reset by following these steps:
1. Reboot your Linux system and when the boot loader menu appears, press any key to stop the boot process.
2. Select the option to enter the recovery mode. In some systems, this may be labeled as “single user mode”.
3. Once you’ve entered the single user mode, the system will present you with a prompt to enter commands.
4. At the prompt, type “passwd root” and press Enter. This will allow you to set a new password for root.
5. After entering the new password, you can reboot the system.
6. Upon reboot, you can log in using the new password.
1. Boot your system into single user mode.
2. Once you are in single user mode, type in “passwd root” and enter a new password.
3. Reboot the system to normal mode.
4. Log in with the new root password.