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!

Can you un mount /tmp while live?

Discussion in 'Workarounds and Optimization' started by WebHostPro, Feb 23, 2017.

Tags:
  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,651
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi, I need to un mount the /tmp folder for a server tweak I need to do.

    Can I do this while the server is live?

    Or alternatively can I run this without crashing the server?

    mount -o remount,exec /tmp

    Than change it back

    mount -o remount,noexec /tmp

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Jaison V John

    Jaison V John Member

    Joined:
    Apr 15, 2016
    Messages:
    17
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    This is not recommended and will definitely cause problems for MySql / MariaDB as well the sites writing temp session files to /tmp folder.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Granting exec permissions to the /tmp partition shouldn't prevent any services from working. It simply makes the /tmp partition less secure for the duration it's mounted without the noexec option.

    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