diff options
Diffstat (limited to 'scripts/harden-root.sh')
| -rwxr-xr-x | scripts/harden-root.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/scripts/harden-root.sh b/scripts/harden-root.sh deleted file mode 100755 index c8e267a..0000000 --- a/scripts/harden-root.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -set -e - -main() { - chown root:wheel /etc/doas.conf - chmod 0640 /etc/doas.conf - usermod -p '*' root - sed -i 's/^PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config - rcctl reload sshd -} - -main "$@" |