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.

How to block tmp folders before they are full?

Discussion in 'Security' started by toplisek, Feb 11, 2013.

  1. toplisek

    toplisek Active Member

    Joined:
    Jan 7, 2010
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    There are clients and run applications and sometimes they fill up the temp. directory. How to prevent this as disc is full in some cases? Message sample: No space left on device...
     
  2. Jeff Shotnik

    Jeff Shotnik Well-Known Member

    Joined:
    Oct 10, 2012
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Denver, Colorado, United States
    cPanel Access Level:
    DataCenter Provider
    You could adjust the ownership of /tmp so cpanel users can't write to it, but I don't recommend it as other services use /tmp as well (apache, mysql, webmail, etc). I would find who is using /tmp the most and adjust that users scripts to use a local tmp directory (/home/cpaneluser/tmp).
     
  3. toplisek

    toplisek Active Member

    Joined:
    Jan 7, 2010
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    So, actually all Lynux hosting servers can be abused with such tmp folders as many users can work together on one server and block all others with financial consequence?
     
  4. Jeff Shotnik

    Jeff Shotnik Well-Known Member

    Joined:
    Oct 10, 2012
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Denver, Colorado, United States
    cPanel Access Level:
    DataCenter Provider
    They could, yes, but probably won't happen. If you're that worried, you can always adjust the tmp location within the servers main php.ini (to a larger partition like /home/tmp), then adjust suphp.conf (if using suphp) so the setting can't be overwritten.
     
Loading...

Share This Page