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!

mounting on openvz

Discussion in 'Security' started by tiff2342, Nov 28, 2012.

  1. tiff2342

    tiff2342 Well-Known Member

    Joined:
    Apr 20, 2012
    Messages:
    140
    Likes Received:
    0
    Trophy Points:
    66
    cPanel Access Level:
    Root Administrator
    Is this the correct way to secure /tmp on an OpenVZ system?

    nano /etc/fstab
    and insert below lines,

    mount /dev/loop0 -o noexec,nosuid,rw /dev/tmpFS /tmp
    mount /dev/loop0 /dev/tmpFS -o noexec,nosuid,rw
    run command below,

    mount -obind,nosuid,noexec,nodev,rw /usr/tmp /tmp
    or is this the way to go? how do i make it mount like this on boot up?

    mount -t tmpfs -o noexec,nosuid tmpfs /tmp/
    mount -t tmpfs -o noexec,nosuid tmpfs /var/tmp/
     
  2. cPanelJared

    cPanelJared Technical Analyst

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    20
    Trophy Points:
    143
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Just run /scripts/securetmp. You do not need to edit any files manually if you run it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tiff2342

    tiff2342 Well-Known Member

    Joined:
    Apr 20, 2012
    Messages:
    140
    Likes Received:
    0
    Trophy Points:
    66
    cPanel Access Level:
    Root Administrator
    thought that does not work for openvz?
     
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