core94: allow rootlogin only if the user has not blocked it before.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2015-09-27 10:42:38 +02:00
parent d82c564b23
commit ccb8e47d0e

View File

@@ -44,7 +44,7 @@ extract_files
# Update SSH configuration
sed -i /etc/ssh/sshd_config \
-e 's/^#\?PermitRootLogin .*$/PermitRootLogin yes/'
-e 's/^#PermitRootLogin yes$/PermitRootLogin yes/'
# Move away old and unsupported keys
mv -f /etc/ssh/ssh_host_dsa_key{,.old}