]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core94: allow rootlogin only if the user has not blocked it before.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 27 Sep 2015 08:42:38 +0000 (10:42 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 27 Sep 2015 08:42:38 +0000 (10:42 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/94/update.sh

index e2005af01b5e7a99e8026ae5097514e350fb4c57..7dca2a1fd3a06bac46547b3c745b891ec3c27bde 100644 (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}