aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd-image/scripts/harden-root.sh
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-image/scripts/harden-root.sh')
-rwxr-xr-xopenbsd-image/scripts/harden-root.sh11
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() {