Portal Home > Knowledgebase > VPS Servers > How to Secure /tmp in your VPS Server?
Most of the attacks and exploits use /tmp to work out of any propagate themselves. By mounting /tmp with noexec and nosuid (meaning executables cannot be run from /tmp nor with escalated privileges), this stops many of these exploits from being able to do any harm.
You can do it by adding following entry in “/etc/fstab”
====
none /tmp tmpfs nodev,nosuid,noexec 0 0
====
save the file and reboot the VPS, now vps get mounted with “nosuid” and “noexec”.
..
...
Syukran wa jazakumullah khair.
Baitul Bytes Network.
Add to Favourites
Print this Article