diff options
Diffstat (limited to 'bootstrap.d/30-security.sh')
-rw-r--r-- | bootstrap.d/30-security.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap.d/30-security.sh b/bootstrap.d/30-security.sh index 86f1c00..899c250 100644 --- a/bootstrap.d/30-security.sh +++ b/bootstrap.d/30-security.sh @@ -19,9 +19,10 @@ if [ "$ENABLE_ROOT" = true ]; then chroot_exec usermod -p "${ENCRYPTED_PASSWORD}" root if [ "$ENABLE_ROOT_SSH" = true ]; then - sed -i 's|[#]*PermitRootLogin.*|PermitRootLogin yes|g' $R/etc/ssh/sshd_config + sed -i "s|[#]*PermitRootLogin.*|PermitRootLogin yes|g" $R/etc/ssh/sshd_config fi else + # Set no root password to disable root login chroot_exec usermod -p \'!\' root fi |