aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2015-09-07 16:26:39 +0000
committercassio <cassiopc@gmail.com>2015-09-07 16:26:39 +0000
commit64143437a294aa4e0e94d60e79ba3ac677c40e5b (patch)
tree06f960296cae00337f96d621c53b134f3c04bea3 /tools
parent3443e44388376b2632daaa056a5d826506ccf208 (diff)
downloadboca-64143437a294aa4e0e94d60e79ba3ac677c40e5b.tar.gz
boca-64143437a294aa4e0e94d60e79ba3ac677c40e5b.zip
security fix and staff restrictions
Diffstat (limited to 'tools')
-rwxr-xr-xtools/installv2.sh5
1 files changed, 5 insertions, 0 deletions
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 "============================================================"