The method of using Lynis tool to check system Security in Linux
This article introduces the knowledge about "Linux uses Lynis tools to detect system security". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
How to use:
Installation:
#apt-get install lynis
uses examples
All checks (most commonly shown in Figure 9):
#lynis --check-all -Q
Figure Working Interface
Automatic check with crontab:
#lynis -c --auditor "automated" --cronjob 》 /var/log/lynis/report.txt
Check an item:
#lynis --tests FILE-6354 –quick
Inspection report content:
# grep Warning /var/log/lynis.log
Inspection suggestion content:
# grep Suggestion /var/log/lynis.log
Lynis is a set of system security Detection Tools for various UNIX-based systems. It can identify areas where system security needs to be strengthened and provide many practices and suggestions for improving system security. It is a good tool for system administrators to learn (or review) many system security concepts. Shortcomings: This tool covers the audit content of system security in a comprehensive way, but each audit item is not in-depth and needs specific extensions, such as PHP, Apache, MySQL security configuration, which needs to be refined.
"Linux uses Lynis tools to detect system security" content introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!