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.

Directory /tmp

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

  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    46
    Likes Received:
    1
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    669
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page