Log In | Register | September 23, 2019

Share
 

Linux - June 19, 2012

Use single-user mode to gain access to a system.

Logging into to single user mode allows you to access the system as root without a password. This is especially useful when you need to troubleshoot or gain access to a system in order to fix a problem.

In order to gain access to a system via single user mode you need to edit the grub menu. Once you’re at the grub menu, you’d want to edit the operating system you are trying to gain access to. Then you’ll typically see a few lines one of them being the kernel line. Once you have found this line append the number 1 to the end of the kernel line and boot from there.

Your system will now boot into single user mode.

Note* If you’re trying to change the root password on a system that has selinux enabled and are having a problem. Try setting the selinux to permissive mode and then changing the password.

setenforce 0

Post By: | FavoriteLoadingAdd to favorites

3 Comments

RHCSA Certification Study Guide | DevBlog.co
Monday, June 25, 2012

[...] Use single-user mode to gain access to a system [...]

Marcin EF
Tuesday, October 9, 2012

Good tip about SElinux, I had to disable it as well before changing root password.

Janet
Tuesday, July 21, 2015

Please keep us informed just like this. I get the urge to say it would sulppy up to !I’m learn a good thing from you site, while I’m hoping to achieve my goals. I absolutely liked reading everything that is published on your websites.Continuetruly are at core obtainable throughout. I actually like ypriceur post, Ill are obtainable to verify the latest posts.

Leave a Comment



Need Help? Ask a Question

Ask anything you want from how to questions to debug. We're here to help.

You Must Be Logged In To Post A Question.

Log In or Register