From 64143437a294aa4e0e94d60e79ba3ac677c40e5b Mon Sep 17 00:00:00 2001 From: cassio Date: Mon, 7 Sep 2015 17:26:39 +0100 Subject: security fix and staff restrictions --- tools/installv2.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/installv2.sh') diff --git a/tools/installv2.sh b/tools/installv2.sh index e75f2e9..db2aa96 100755 --- a/tools/installv2.sh +++ b/tools/installv2.sh @@ -289,6 +289,11 @@ if [ $? != 0 ]; then sed "s/errors=remount-ro/quota,errors=remount-ro/" < /etc/fstab.bkp.$di.1 > /etc/fstab fi +grep -q icpcadmin /etc/ssh/sshd_config +if [ "$?" != "0" ]; then + echo "DenyUsers icpc icpcadmin" >> /etc/ssh/sshd_config +fi + echo "============================================================" echo "===================== SETTING UP USER QUOTA ===============" echo "============================================================" -- cgit v1.2.3