Linux knowledge: prevents entry into a single user
Source: Internet
Author: User
Linux knowledge: prevents entry into a single user-Linux general technology-Linux technology and application information. The following is a detailed description. Because a single user has full control permissions on the system, if the operation is improper or is accessed by others, the consequences will be unimaginable. How to prevent the entry of a single user has the following considerations.
1. Protect the/etc/inittab file. For the/etc/inittab file, use the root identity to enter the chown 700/etc/inittab and set the attribute to something other users cannot modify.
2. If the lilo mode is used for boot, you may use linuxconf or directly modify lilo. conf to set the waiting time for the boot to 0 or the shortest time. In this case, if you enter the single-user mode, you can use a floppy disk for boot.
3. If GRUB is used for boot, the simplest method is to use the GRUB Password to protect the startup options. You can also set the wait time, as shown in the preceding figure.
4. In order to prevent remote damage and restart the system, in addition to effectively managing the ROOT password and files in the/etc directory, the CMOS password should also be set, in this way, even if the system is changed to a single user mode, the computer cannot be started directly.
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