SSH Hardening Audit
Inspect sshd configuration for common risky settings without changing anything.
$ webtoolist --script file-permission-audit
Find world-writable files and directories, excluding known-safe locations.
permissionsauditsecurityfindDependencies: find
#!/usr/bin/env bash
set -euo pipefail
root="${1:-/}"
limit="${LIMIT:-50}"
find "$root" -xdev \
\( -path /proc -o -path /sys -o -path /dev -o -path /run -o -path /tmp -o -path /var/tmp \) -prune -o \
-type f -perm -0002 -print 2>/dev/null \
| head -n "$limit"
sudo ./file-permission-audit /
sudo LIMIT=200 ./file-permission-audit /srv
namei -l PATH to see the full permission chain for a specific file.Related scripts
Inspect sshd configuration for common risky settings without changing anything.
Summarise recent failed SSH logins by source address.
Locate files above a size threshold and show them largest first.
Search filenames interactively with fzf when available, falling back to find.