How to secure /tmp and /dev/shm Partition
How to secure /tmp if we didn't partition /tmp when installed CentOS. Also, secure /dev/shm to protect rootkits. 1. Secure /tmp partition 1.1: Backup your fstab file cp /etc/fstab /etc/fstab.bak
1.2: Creating tmpMnt partition file (~ 1Gb in size) cd /var dd if=/dev/zero of=tmpMnt bs=1024 count=1048576
1.3: Format new partition mkfs.ext3 -j /var/tmpMnt
It will show /var/tmpMnt is not a block special device. Proceed anyway? (y,n)
Just press Y