Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mounting issues using /scripts/securetmp

Discussion in 'General Discussion' started by monotest, Feb 23, 2011.

  1. monotest

    monotest Registered

    Joined:
    Sep 6, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    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
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice