In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
In this issue, the editor will bring you what the solution to the security problem of Linux server is. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
Linux server has a lot to learn, here we mainly introduce linux server security issues, including preventive countermeasures and so on.
As we all know, enterprise information is often stored in the server, but there are inevitably some security risks in the server that worry our network management staff. How to calmly eliminate these hidden dangers and prevent them? The following editor mainly focuses on the security of Linux server to do some simple introduction.
Boot: when prompted after the Linux server starts, use a special command, such as Linuxsingle or Linux 1, to enter single-user mode (Single-User mode). This command is very useful, such as forgetting the superuser (root) password. Restart the system and type Linux single (or Linux 1) at the boot: prompt. After the super user enters the system, edit the Passwd file and remove the x from the root line.
Preventive measures:
Enter the system as superuser (root), edit the / etc/inittab file, change the settings of id:3:initdefault, and add an additional line (as follows) to prompt for the superuser password when the system is rebooted into single-user mode:
S:walt:/sbin/sulogin
Then execute the command: / sbin/init Q to make this setting work.
Pass hazard parameters to the core when the system starts up
The most commonly used boot load (boot loader) tool under Linux is LILO, which is responsible for managing the boot system (you can add other partitions and operating systems). But some illegal users may start Linux casually or pass dangerous parameters to the core when the system starts, which is also quite dangerous.
Preventive measures:
Edit the file / etc/lilo.conf to include the restricted parameter, which must be used with the following password parameter, indicating that you need to enter a password when passing some parameters to the Linux kernel at the boot: prompt.
The password parameter can be used with restricted or alone, as described below.
Use with restricted: it is important to note that passwords are required only when kernel parameters need to be passed to the kernel at startup, while in normal (default) mode, passwords are not required.
Used alone (not used with restricted): indicates that Linux always requires a password no matter what startup mode is used; if there is no password, there is no way to start Linux, in which case it is more secure, which is equivalent to adding another layer of defense to the perimeter. There are disadvantages, of course-you can't restart the system remotely unless you add the restricted parameter. Since the password is not encrypted in plaintext, the / etc/lilo.conf file must be set to be readable only to the superuser, and can be set using the following command:
Chmod 600 / ietc/lilo.conf
Then execute the command:
/ sbin/lilo-V, write it to boot sector and make this change effective.
To enhance the security of the / etc/liIo.conf file, you can also set the file to an immutable attribute, using the command:
Chattr + i/etc/lilo.conf, if you want to modify the / etc/liIo.conf file later, use the chattr-i/etc/lilo.conf command to remove this attribute. Using the "Ctrl+Alt+Del" key combination to restart is very important and easy to ignore. If an illegal user has access to the server's keyboard, he can use the key combination "Ctrl+AIt+Del" to restart your server.
Preventive measures:
Edit the / etc/inittab file and comment ca::ctrlaltdel:/sbin/shutdown-t3-r now with # ca::ctrlaltdeI:/sbin/shutdown-t3-r now.
Then execute the command:
/ sbin/init Q to make this change effective.
This is what the solution to the Linux server security problem shared by the editor is. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.