Securing and cleaning the /tmp directory/partition on Cpanel/WHM servers...

  • stop all services which uses /tmp
    service httpd stop
    service mysql stop
    service chkservd stop
  • remove the tmp directory
    umount -1 / tmp
    umount -1 /var/tmp
    rm -fv /usr/tmpDSK
  • recreate and secure /tmp
    edit /scripts/securetmp and change the $tmpdsksize to your chosen number of bytes (we use 20480000 = 2Gb)
    /scripts/securetmp answering yes to both questions
  • restart the server
    reboot
  • 10 Users Found This Useful
Was this answer helpful?

Related Articles

How do I stop Cpanel reporting /usr/bin/crontab permissions are wrong. Please set to 4755.

If you get this message in CPanel when adding/ediiting/viewing the cron jobs ......

How do I force Statistics (Webalizer and AWstats) to run on Plesk Servers ?

Updating Webalizer and AWStats on Linux Plesk Servers from SSH The plesk control panel is...

How much is HELM ? What Helm licences do you offer ?

Web Host Automation (HELM Authors) sold the control panel rights and code some years ago to...

How much is CPanel ? What CPanel licences do you offer ?

We work with a CPANEL authorised NOC partner, able to offer you discounted CPanel licences for...

How much is Plesk ? What Plesk licences do you offer ?

We are a PLESK authorised sales partner, able to offer you discounted Plesk licences for both...

Powered by WHMCompleteSolution