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.

/scripts/securetmp is fine but...

Discussion in 'General Discussion' started by bsasninja, Sep 11, 2006.

  1. bsasninja

    bsasninja Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    528
    Likes Received:
    0
    Trophy Points:
    16
    I tried two things, one running the easy /scripts/securetmp to protect tmp folder.
    And the other mounting the tmp folder as noexec.
    In both, bash scripts cant be run inside tmp folder.

    But if you run for example perl /tmp/a.pl or sh /tmp/a.c the script runs ok. Is there a way to prevent outside calling of scripts inside tmp folder??

    Thank you
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No, there isn't.
     
  3. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    This is where phpsuexec can come in handy to track down hackers that attempt to run obscure scripts in tmp.

     
Loading...

Share This Page