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

Get this output from csf?

" /tmp should be mounted as a separate filesystem with the noexec,nosuid options set "

 

Simply run this command in ssh to secure your vps:

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

  • 11 Users Found This Useful
Was this answer helpful?

Related Articles

How to migrate from OpenVZ VPS to KVM Cloud Server

If you are currently on OpenVZ-based VPS and wanted to migrate your server to our KVM Cloud...