Secured the shared memory partition as suggested here https://www.thefanclub.co.za/how-to/how-secure-ubuntu-1604-lts-server-part-1-basics whilst I was working on my own servers

This commit is contained in:
ChiefGyk 2016-12-17 16:17:25 -05:00
parent 34d58fb720
commit 64de36e47d
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ if [ -n "$MOUNTED_TMP_AS_NO_EXEC" ]; then
exit
fi
#make sure that shared memory is secured
grep -q -F 'tmpfs /run/shm tmpfs defaults,noexec,nosuid 0 0' /etc/fstab || echo 'tmpfs /run/shm tmpfs defaults,noexec,nosuid 0 0' >> /etc/fstab
# Check that no .wgetrc exists
if [ -e ~/.wgetrc ]; then
echo "Mail-in-a-Box expects no overrides to wget defaults, ~/.wgetrc exists"