diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-04 17:13:04 -0700 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-11 18:33:36 -0700 |
| commit | 7fde7b9244bb7c96bccbd71518ee0e831d4d0faf (patch) | |
| tree | 24a14c808a2475971a739918ca6a26463e6c95f6 | |
| parent | Fix git data directory in disk layout (diff) | |
| download | site-server-images-7fde7b9244bb7c96bccbd71518ee0e831d4d0faf.zip | |
Add header comment to explain harden root script
| -rwxr-xr-x | openbsd-image/scripts/harden-root.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsd-image/scripts/harden-root.sh b/openbsd-image/scripts/harden-root.sh index c8e267a..423b536 100755 --- a/openbsd-image/scripts/harden-root.sh +++ b/openbsd-image/scripts/harden-root.sh @@ -1,4 +1,15 @@ #!/bin/sh +# +# DESCRIPTION: Harden root user access by +# - Ensuring only root:wheel can change /etc/doas.conf +# - Remove the root user's password +# - Disable root user login via SSH +# +# ASSUMPTIONS: +# - Run as root. +# +# USAGE: +# ./harden-root.sh set -e main() { |