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!

Directory /tmp

Discussion in 'Security' started by leonep, Apr 8, 2016.

  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    88
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    Hi guys i am looking for increase security . Reading
    Tips to Make Your Server More Secure - cPanel Knowledge Base - cPanel Documentation

    i have found tips called "Harden your /tmp partition"

    in my config i have:
    XXXX@XXXXX [/]# df -h /tmp/
    Filesystem Size Used Avail Use% Mounted on
    /dev/root 20G 8.8G 9.7G 48% /

    and /etc/fstab:
    # <file system> <mount point> <type> <options> <dump> <pass>
    /dev/md2 / ext3 errors=remount-ro 0 1
    /dev/md3 /home ext3 usrjquota=quota.user,jqfmt=vfsv0 1 2
    /dev/sda4 swap swap defaults 0 0
    /dev/sdb4 swap swap defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs defaults 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts defaults 0 0

    Cpanel recommend to use a separate /tmp partition that you mount with the nosuid option.
    I am not expert in partitioning but i want secure my /tmp if possible. can someone help me please? thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You can utilize the following command to secure your /tmp partition:

    Code:
    /scripts/securetmp
    Thank you.
     
    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