How to mount /tmp and /var/tmp with noexec nosuid Print

  • 796

You may want to mount /tmp and /var/tmp with noexec and nosuid on your VPS especialy if you want to increase your security score in CSF for example.

Here's how to do it, just run the following commands:

mount -t tmpfs -o noexec,nosuid tmpfs /tmp/
mount -t tmpfs -o noexec,nosuid tmpfs /var/tmp/

Note: This will be included in Hypanel at the "Machine security" section


Was this answer helpful?

« Back