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:
parent
34d58fb720
commit
64de36e47d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue