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/

  • 50 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...

How to change timezone on AlmaLinux

By default AlmaLinux 8 or 9 come preset with UTC time. To change to your own timezone, please...

How to activate cloud server firewall

There are two levels of firewall for Cloud Server: 1) default firewall (firewallld, iptables,...