How to disable single-user logon in Linux

Source: Internet
Author: User
In Linux, how do I disable single-user logon? in Linux, how do I disable single-user logon?

If you are not allowed to access a single user, you must first configure the password for GRUB. you only need to modify/boot/grub. conf or/etc/grub. conf (/etc/grub. conf is/boot/grub. conf ).

For example: vi/boot/grub. conf to edit the configuration file. you can add password = password to the next line of the splashimage parameter. after saving the password, restart the computer and log on to the GRUB menu page again, in this case, you cannot directly use the e command to edit the start tag. you must use the p command and enter the correct password before editing the start tag, however, it is not safe to set a plaintext password.

If you have obtained the plaintext password, you can modify the GRUB startup tag to change the root password.

Therefore, MD5 encryption is required. Enter the grub-md5-crypt in the terminal and press enter, then the system will ask to enter the same password twice, then the system will output the MD5 code. You only need to copy the generated MD5 ciphertext, and then set the global or menu password according to the password-md5 MD5 ciphertext format, save and quit, and restart the computer.

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.