/scripts/securetmp -- How to create MUCH LARGER /tmp folder?

pkiula

Member
Jan 14, 2012
15
0
51
cPanel Access Level
Root Administrator
The default setting for disk size in the script
Code:
/scripts/securetmp
is about 512 MB.

This is pretty useless for any real world server with a website that gets any amount of meaningful traffic.

I went into the script and changed the value in the following line:

Code:
#---- my $tmpdsksize     = 512000;    # Must be larger than 250000
my $tmpdsksize     = 2097152;;    # Must be larger than 250000
Then I executed the usual commands:


Code:
lsof /tmp
umount -l /tmp
umount -l /var/tmp
rm -fv /usr/tmpDSK
/scripts/securetmp
Then I do the "df -h" and it shows me this:


Code:
/dev/sda8     ext3    996M  509M  436M  54% /tmp

Why is it "996M" when I specified 2GB? It should be close to 2000M right?

Any tips welcome. Thanks.
 
Last edited: