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!

issue with /tmp

Discussion in 'Security' started by crazyaboutlinux, Oct 20, 2011.

  1. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    941
    Likes Received:
    0
    Trophy Points:
    66
  2. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I would recommend creating the tmp file manually:

    umount -l /tmp
    cd /dev/; dd if=/dev/zero of=tmpMnt bs=1024 count=800000
    /sbin/mke2fs /dev/tmpMnt
    mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp

    This will create a 1G (x2 times securetmp) /tmp partition, dont forget to add it to fstab so it gets mounted everytime you reboot.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    I disagree, The best way to do it is through the "securetmp",

    @OP: If you want to increase its size you can modify this file

    PHP:
    /scripts/securetmp
    And change what's on this line:

    PHP:
    my $tmpdsksize
    It will be like that:

    PHP:
    my $tmpdsksize     512000;
    That means 500MB, You can increase it to what you want, I advise you not to go over 3 or 5GB at most.

    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