mounting issues using /scripts/securetmp

monotest

Registered
Sep 6, 2007
4
1
53
I wanted to increase the size of /tmp dir, so killed mysql, httpd processes. Then

Code:
umount /tmp
replaced the size value in /scripts/securetmp
Code:
rm /usr/tmpDSK
and finally launched
Code:
/scripts/securetmp
and got this output:

Code:
Would you like to secure /tmp & /var/tmp at boot time? (y/n) y
Would you like to secure /tmp & /var/tmp now? (y/n) y
Use of uninitialized value in numeric eq (==) at /scripts/cpservice line 48.
Use of uninitialized value in print at /scripts/cpservice line 49.
Use of uninitialized value in exit at /scripts/cpservice line 55.
Securing /tmp & /var/tmp
Setting up /tmp... mount: you must specify the filesystem type
Done
You may notice securetmp failed to mount tmp dir
Code:
Setting up /tmp... mount: you must specify the filesystem type
What filesystem type I have to specify? How to mount it manually?

I use CentOS 5, latest WHM 11.28.83. In case you need, here is the copy of my fstab:
Code:
LABEL=/                 /                       ext3    defaults,usrquota        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda2         swap                    swap    defaults        0 0
#/usr/tmpDSK             /tmp                    ext3    defaults,noauto        0 0
#/dev/tmpMnt            /tmp                    ext2    loop,noexec,nosuid,rw   0 0
/usr/tmpDSK             /tmp                    ext3    defaults,noauto        0 0
/tmp             /var/tmp                    ext3    defaults,bind,noauto        0 0
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

Please try the following steps:

1. Uninstall securetmp

Code:
/scripts/securetmp --uninstall
2. Remove /tmp and /var/tmp from /etc/fstab

Code:
cp /etc/fstab /root/fstab.bak110224
vi /etc/fstab
Remove the line for /tmp in the file:

Code:
/tmp             /var/tmp                    ext3    defaults,bind,noauto        0 0
Save the file :)wq)

3. Move /usr/tmpDSK if it exists to /usr/tmpDSK.bak110224

Code:
mv /usr/tmpDSK /usr/tmpDSK.bak110224
4. Re-run /scripts/securetmp

Code:
/scripts/securetmp
If the above does not work, please provide the size you are trying to use to increase /tmp to for the securetmp script. It might be that you are exceeding an allowed value for the size of the partition.

Thanks.