The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

issue with /tmp

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

  1. crazyaboutlinux

    crazyaboutlinux Well-Known Member

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

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  3. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    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!
     
Loading...

Share This Page