]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/rootfiles/core/94/update.sh
core94: allow rootlogin only if the user has not blocked it before.
[ipfire-2.x.git] / 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}