summaryrefslogtreecommitdiff
path: root/scripts/rl-system.init
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-xscripts/rl-system.init8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init
index 038653fe..fc328b7b 100755
--- a/scripts/rl-system.init
+++ b/scripts/rl-system.init
@@ -176,11 +176,13 @@ security_reset () {
rm /usr/share/pam-configs/radius
fi
- # Disable root login with ssh
- sed -i -e '/^PermitRootLogin/s/yes/no/' /etc/ssh/sshd_config
-
# Disable root login over telnet
sed -i -e '/^# Pseudo-terminal (telnet)/,$d' /etc/securetty
+
+ # Disable root login with ssh
+ # Renable DNS validation
+ sed -i -e '/^PermitRootLogin/s/yes/no/' \
+ -e '/^UseDNS/s/no/yes/' /etc/ssh/sshd_config
}
start () {