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.

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:
    1
    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:
    6
    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
     
  3. Mat-d-rat

    Mat-d-rat Well-Known Member

    Joined:
    Jul 30, 2003
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    I'm trying this out, but my tmp partition doesn't change? What am I missing?
     
Loading...

Share This Page