To modify /scripts/securetmp or not use it at all ?


Well-Known Member
Apr 27, 2004
Having a week like hell, finally I've discovered that all my problems were generated by a too small /tmp, filling up to 100% and cascading to very high loads, ending with a painfully reboot.

To make a long story short: I want to have a bigger /tmp.

While I do not have a separate partition (yet), and knowing that latest versions of cpanel run /scripts/securetmp anyway, I have two scenarios:

- either modify the script from /scripts/securetmp to increase the size from 512M to my desired 2048M (is it ok like this ?);
- either lock /scripts/securetmp (delete or make it read-only ?) and build a separate /tmp as I found in a lot of tutorials;

Both scenarios imply increased attention on /scripts/securetmp, especially after a cPanel update.

Which scenario would you propose ?

Thank you.


Well-Known Member
Jan 6, 2004
New Jersey
cPanel Access Level
Root Administrator
The only problem I can see with modifying the securetmp script is that it may be overwritten in the future without you realizing. Then again, once you run the script and tmp is created and mounted noexec you shouldn't need the script again anyway. :) Either way seems viable to me.


Well-Known Member
Verifed Vendor
Jun 15, 2002
Go on, have a guess
I agree. I'd simply modify /scripts/securetmp to create a larger file. That's not going anywhere then unless it's removed. If that happens you can repeat the procedure to recreate it.