Linux prohibits single-user mode (single) to enhance system security
Source: Internet
Author: User
Linux prohibits the single user mode (single) and enhances System Security-General Linux technology-Linux technology and application information. For more information, see the following. When the kernel is listed at boot, press any key to stop at the kernel selection. Press e on the kernel, press e on Red Hat Enterprise Linux, and add single to single user mode at the end of the kernel startup partition, in this way, we can get a password to access the system. It's so uncomfortable that someone else has logged on to the system and taken the file away.
Here we will introduce a method to add a password to grub to prohibit others from entering the system in single-user mode. 2 methods
1. in plaintext mode, add the following line in the splashimage parameter:
Password = password
2. MD5 encryption method. Add the following line in the splashimage parameter:
Ciphertext in linux system with grub-md5-crypt to create, terminal input grub-md5-crypt press enter, then the system will require two identical password, then the system will output the MD5 code.
After saving it, restart the computer and log on to the GRUB menu page again. You cannot directly use the e command to edit the startup tag. You must use the p command first, enter the correct password to edit the startup tag.
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