summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/systemconfig.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-04-12 02:53:28 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-04-12 02:53:28 (GMT)
commit0d8e27875735262157fde2ec8b9093a52708ebb8 (patch)
treee53601a2d5092d56ea8de61ad3ce3d25a769109e /abs/core-testing/LinHES-config/systemconfig.sh
parentd28f89f64b1e19e82562a85c621501d949c7f76a (diff)
downloadlinhes_pkgbuild-0d8e27875735262157fde2ec8b9093a52708ebb8.zip
linhes_pkgbuild-0d8e27875735262157fde2ec8b9093a52708ebb8.tar.gz
linhes_pkgbuild-0d8e27875735262157fde2ec8b9093a52708ebb8.tar.bz2
LinHES-config: The padded helmet is now optional.
Having to change sshd config every new install finally annoyed me enough to do something about it. By default the helmet is on ensuring the safety of linhes users everywhere.
Diffstat (limited to 'abs/core-testing/LinHES-config/systemconfig.sh')
-rwxr-xr-xabs/core-testing/LinHES-config/systemconfig.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-config/systemconfig.sh b/abs/core-testing/LinHES-config/systemconfig.sh
index d4894ba..6f8ceb8 100755
--- a/abs/core-testing/LinHES-config/systemconfig.sh
+++ b/abs/core-testing/LinHES-config/systemconfig.sh
@@ -1173,7 +1173,15 @@ case $i in
this_is_install) MV_NEW_INSTALL="true"
;;
-
+ user)
+ if [ x$rootSSH = "x1" ]
+ then
+ sed -i "s/^.*PermitRootLogin.*$/PermitRootLogin yes/" $BASE/etc/ssh/sshd_config
+ else
+ sed -i "s/^.*PermitRootLogin.*$/PermitRootLogin no/" $BASE/etc/ssh/sshd_config
+ fi
+ sv hup sshd
+ ;;
esac
done