Securing /tmp Partition

Securing /tmp Partition on a Linux Machine


To protect your server from local and remote exploits being executed from your /tmp folder, we need to mount it using noexec.

To mount /tmp and /var/tmp with noexec and nosuid on your server, modify /etc/fstab and put the entry like this /dev/sda5 /tmp ext3 noexec,nosuid 1 2 On cPanel servers,. there is a script to perform the task.

You simply need to execute the following script as root /scripts/securetmp Confirm the modification by executing the command “mount” and you should be able to see the options on the result.


There are no revisions for this post.

Tags: , ,

No comments yet.

Leave a Reply