Run it
Four commands on the server, as root or with sudo. It takes about ten seconds.
# 1. download the script and its checksum
curl -fsSLO https://rootmanage.com/agent/rootmanage-audit.sh
curl -fsSLO https://rootmanage.com/agent/rootmanage-audit.sh.sha256
# 2. check the file against the published checksum (it must print OK)
sha256sum -c rootmanage-audit.sh.sha256
# 3. run it as root. It reads settings and prints a report here. Nothing is sent.
sudo bash rootmanage-audit.sh --reportThe checksum line makes sure the file you downloaded is the one we published. If it does not print OK, do not run it.
What you get
A report in your terminal, worst problems first, each with the fix. This one is a made-up example.
RootManage security audit: web01 (Ubuntu 24.04.1 LTS)
Score 61/100, grade D. 58 checks: 40 passed, 6 for your information, 12 to fix or review. Took 7 s.
CRITICAL (2)
[SSH-001] Root can log in with a password
Fix: Set PermitRootLogin to prohibit-password (or no), use SSH keys, and restart sshd. Keep a second session open while you test.
[ACC-001] Accounts with no password
Fix: Lock them (passwd -l name) or set a long password.
HIGH (1)
[FW-001] No firewall found on the server
Fix: Turn on ufw or firewalld, allow SSH first, then only the ports you need.
MEDIUM (2)
[SSH-002] SSH accepts passwords
Fix: Switch to SSH keys, then set PasswordAuthentication no.
[UPD-002] A restart is needed (to review)
Fix: Restart the server in a quiet hour, then run the audit again.
...Want to see the dashboard version first? Open the sample report.
What it checks
More than 60 checks across eight areas. Checks that do not apply to your server are skipped.
- Updates. Pending security updates, a restart that is waiting, and whether your system version still gets fixes.
- SSH. Password login, root login, empty passwords, number of tries, protocol settings.
- Accounts. Extra accounts with root powers, empty passwords, old sudo rules.
- Firewall and ports. Whether a firewall is on and which ports listen to the whole internet, such as databases and panels.
- Files. Permissions of key files, world-writable files, SUID programs in odd places, source and dump files in web folders.
- Services, logs and cron. Unneeded services, log keeping, and cron lines that download and run scripts.
- Web, PHP and databases. PHP and database versions that no longer get fixes, risky web settings.
- Control panels. Deep checks for cPanel and WHM, Plesk and DirectAdmin, and detection of CyberPanel, CloudPanel, Hestia, Webmin and others.
Every check, how it is scored and what it sends in dashboard mode is on the security audit guide.
Good to know
- It reads settings and file permissions. It never reads the content of your files, and it never prints passwords or keys.
- It runs at the lowest priority and stops after three minutes.
- It is a review of settings, not a penetration test or a certification. It will not find unknown holes in your own applications.
- Fix the top items first, run it again, and watch the score move.
Learn how to fix what it finds
Free Linux security audit: questions
Is the free audit really free?
Yes. Running the script with --report needs no account and costs nothing. It prints a report on your screen. The weekly audit with a history, alerts and a fix list in a dashboard is part of the paid plans.
Does it send anything to RootManage?
Not in --report mode. It reads settings and prints them to your screen. Only the --once mode, used by the dashboard version, sends the findings to your account.
Does it change my server?
No. It is read-only. It does not install packages, edit files, open ports or restart anything. You can read the whole script before you run it; it is plain bash.
Which servers does it work on?
Linux: Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, CloudLinux, RHEL and similar, with or without a control panel. It does not check Windows servers.
Is this a penetration test?
No. It is a review of settings and file permissions. It finds known weak settings, not unknown holes in your own applications, and it is not a certification.
How is it different from Lynis?
Lynis is a larger, open-source auditing tool with a very broad set of tests. This script is smaller, adds cPanel, Plesk and DirectAdmin checks, scores the result and can send it to a dashboard with history and alerts. See the comparison page.
Want it every week, with alerts?
Paid plans run the audit on a schedule, keep the history, alert you when the score drops and let you ask our team to fix findings.