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!

temporarily allow executables in /tmp

Discussion in 'General Discussion' started by bigste, Apr 20, 2009.

  1. bigste

    bigste Member

    Joined:
    Jan 6, 2009
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    Cheshire, UK
    I'm trying to run PlateSpin (a WMI data gathering product) from another server. It wants to execute some commands via FTP and SSH and collect the results afterwards but it seems to be trying to do it in the /tmp folder.
    It fails on Permission Denied every time.
    How can I set the /tmp folder to allow executables to run, for a week or so and then set it back after, with causing too much damage?

    Apparently it involves mounting without the noexec parameter, is that it?
     
    #1 bigste, Apr 20, 2009
    Last edited: Apr 20, 2009
  2. tuxicans

    tuxicans Active Member

    Joined:
    Oct 16, 2008
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    56
    Yes,

    Please try remounting with noexec like this.

    mount -o remount,rw,exec,nosuid /tmp

    and check using the command "mount -l" to confirm that the partition has been mounted without noexec.

    To change back to noxec, the following command would be sufficiant.

    mount -o remount,rw,noexec,nosuid /tmp
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Mat-d-rat

    Mat-d-rat Well-Known Member

    Joined:
    Jul 30, 2003
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    168
    I'm trying this out, but my tmp partition doesn't change? What am I missing?
     
    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