Linux enters single-user mode to modify Administrator password

Source: Internet
Author: User
Tags administrator password

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

[Email protected]~]# runlevel 1 S

Enter S or single The run level is displayed as

[[Email protected]~]# runlevel N S


Single-user mode is not networked; the equivalent of Windows security mode;


This article is from the "Model Student's Learning blog" blog, please be sure to keep this source http://8802265.blog.51cto.com/8792265/1619959

Linux enters single-user mode to modify Administrator password

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.