Richard G
Verified User
I followed the guide from DA to secure /tmp (and /var/tmp etc.) and that went well.
Now I normally also secure /dev/shm with this guide:
However, with our new server we don't have a /dev/shm entry in fstab. So I don't know what to do. This is our current fstab:
Can anybody make an easy explanation (like a step by step guide) how I can secure /dev/shm?
Because I guess that only making the entry as in the guide into the /etc/fstab and rebooting the server won't do the trick.
Now I normally also secure /dev/shm with this guide:
Edit your /etc/fstab:
# nano /etc/fstab
change:
"none /dev/shm tmpfs defaults,rw 0 0" to
"none /dev/shm tmpfs defaults,nosuid,noexec,rw 0 0"
Remount /dev/shm:
# mount -o remount /dev/shm
However, with our new server we don't have a /dev/shm entry in fstab. So I don't know what to do. This is our current fstab:
proc /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/md0 none swap sw 0 0
/dev/md1 /boot ext3 defaults 0 0
/dev/md2 / ext3 defaults,usrquota,grpquota 0 0
/var/tmpMnt /tmp ext3 loop,noexec,nosuid,nodev,rw 0 0
Can anybody make an easy explanation (like a step by step guide) how I can secure /dev/shm?
Because I guess that only making the entry as in the guide into the /etc/fstab and rebooting the server won't do the trick.