The following is how to secure your /tmp directory on your Dedicated Server using a cPanel Script.
You MUST have cPanel installed for this to work.
1. Login to your server as root via SSH.
2. Type: /scripts/securetmp
That’s it your done. cPanel wrote that script to allow users to secure their /TMP Directory very easily.