In the Linux operating system, when we use the character interface to operate, we often inadvertently encounter the root user can not log on the situation. Generally for beginners, to see this happen, is to kill, a lot of people at this time began to panic God, how to do? Re-install the system!
Linux akzent is not good to use, very troublesome! haha ~ Of course not, but you are not familiar with it! Today I'll tell you how to change the root user's password (without reloading the system) by entering single-user mode. )
The following is an example of the CentOS series operating system:
First step: Linux boot, click on the keyboard on the E can be entered into the Grub menu interface
Second step: When the Grub boot screen appears on the computer, press E again to enter the grub edit state
Step three: Move the cursor to the line beginning with kernel ( usually the second row ) and press the letter E again to edit
Move the cursor to the end, tap a space, enter a single and press ENTER, and then type the letter B, which starts the system
Fourth step: Enter passwd root to modify the root user password, after changing the input reboot restart, you can normally enter the operating system character interface!
This article is from "Juzhou Youth" blog, please be sure to keep this source http://zhengkangkang.blog.51cto.com/12015643/1851065
Solutions for root users in Linux operating systems that cannot be logged on