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.

Can i safelly noexec /tmp directory?

Discussion in 'Security' started by postcd, Sep 18, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    624
    Likes Received:
    6
    Trophy Points:
    18
    Hello, on a WHM server (its virtual server on openvz)

    can i safelly execute these commands?

    add to /etc/fstab:
    then mount:
    then veriffy:
    will this also make /tmp go into RAM instead into disk?
     
  2. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Run cat /proc/mtab to check if the changes saved in RAM. If you make the changes in fstab and then mount tmpfs via command then changes should be saved in disk as well or when you reboot server next time they will read from fstab.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    To answer the overall question, yes, it's normal to set the /tmp partition to "noexec" mode. It's configured this way by default on most systems.

    Thank you.
     

Share This Page