Docs / Security / How to Audit Your Server with Lynis

How to Audit Your Server with Lynis

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 116 views · 1 min read

Lynis is an open-source security auditing tool that checks your system configuration.

Install

apt install lynis -y

Run Audit

lynis audit system

Review Results

Lynis provides a hardening index score and categorized suggestions:

  • Warnings (critical issues)
  • Suggestions (improvements)
  • Compliant items (properly configured)

Automated Scanning

crontab -e\n0 3 * * 0 lynis audit system --cronjob >> /var/log/lynis-audit.log

Was this article helpful?