Report this

What is the reason for this report?

Article: Secure Your TMP

Posted on July 30, 2013

How I secure my /tmp and /var/tmp directories on DigitalOcean… Hope this helps you… :)

cd / dd if=/dev/zero of=tmpfile bs=1024 count=1048576 mkfs.ext3 -j /tmpfile mount -o loop,noexec,nosuid,rw /tmpfile /tmp chmod 1777 /tmp echo “/tmpfile /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0? >> /etc/fstab rm -rf /var/tmp ln -s /tmp/ /var/tmp

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.