Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of using Lynis tool to check system Security in Linux

Shulou Source: shulou.com Published: 2022-06-01 07:54:09 10月04日 Update

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!

Tags: Security systems tools content inspection methods testing testing systems practicality advice more knowledge learning auditing learning and then from practices methods of use examples Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn NVidia MariaDB macOS Redmi