Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

How to protect /tmp on your server ?

Normally you get the following error

Error or warning message : Check /var/tmp is mounted as a filesystem WARNING /var/tmp should either be symlinked to /tmp or mounted as a filesystem.

In that case , you protect your /tmp  in one step , by firing the following command :-

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

A reboot is not required in this case and it had worked without a reboot.

You may check it without rebooting.

Share on Twitter
Share on Facebook