Use version: Centos6.6
1, boot into the boot interface after pressing E or enter , enter the GRUB boot menu, such as;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/32/wKioL1UCPPPy7y1hAADvQbKvWB8969.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiol1ucpppy7y1haadvqbkvwb8969.jpg "/>
2, Press e to enter the editing mode, the upper and lower key moves to switch to line 2nd kernel this line;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/38/wKiom1UCO9eCelHzAAGW7OZ0E38328.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiom1uco9ecelhzaagw7oz0e38328.jpg "/>
3. Press e to enter kernel Edit command line, for example, in the cursor space and then enter single or S or 1
Press Enter when finished, save to return to the previous boot menu, press B to start the system
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/32/wKioL1UCPPzR7EDiAADP1KSgBf4019.jpg "style=" float: none; "title=" 3.jpg "alt=" Wkiol1ucppzr7ediaadp1ksgbf4019.jpg "/>
4, start the system does not need to enter the administrator password, enter the single user mode, after entering can passwd the command to modify the administrator password;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/38/wKiom1UCO9yBv5mLAABUj0x-Kys931.jpg "style=" float: none; "title=" 5.jpg "alt=" Wkiom1uco9ybv5mlaabuj0x-kys931.jpg "/>
5. Operation level of single user mode
Enter 1 run level shown as
12 |
[[email protected]~] # runlevel 1 S |
Enter S or single The run level is displayed as
12 |
[[email protected]~] # runlevel N S |
Single-user mode is not networked; the equivalent of Windows security mode;
This article is from the It Dick thread blog, so be sure to keep this source http://68686789.blog.51cto.com/10438688/1689126
Linux enters single-user mode to modify Administrator password