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 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,612
    Likes Received:
    11
    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!
     
  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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    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.
     
Loading...

Share This Page