Linux startup mode settings and root user password modification

Source: Internet
Author: User

1. Modify the startup mode:

Enter command line terminal to use this command

[Email protected] ~]# Vi/etc/inittab
Id:5:initdefault:

5 for graphical interface mode

3 for multi-user developer mode

Tap I into edit mode, change 5 to 3

Executive Esc->:wq->reboot

Modified successfully!

2. Change the root password:

A. Start the system,

B. Let it stop at the start of the interface, just click on a key on the keyboard, this will enter the operating system configuration Boot interface,

C. According to the prompts, tap the keyboard e key, edit the boot information

D. Locate the kernel option and, as prompted, tap the E key

E. Append parameter 1, log in to the system in single-user mode

F. Enter

G. Tap the B key to start the system

H. Enter the passwd command to reset the password

3. To prevent arbitrary password changes, grub can be encrypted:

A. Using grub-md5-crypt

B. Enter the password to generate the encrypted password

C.

Vi/boot/grub/grub.conf

D

#文件头添加password--MD5 $1$uga2b1$driidrvtegvg95fhhx4h./

E. This time again to enter the single user name change password is not

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.