diff options
Diffstat (limited to 'openbsd-image/scripts/harden-root.sh')
| -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() { |