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!

How to make /tmp noexec?

Discussion in 'General Discussion' started by SuperBaby, Jan 8, 2008.

  1. SuperBaby

    SuperBaby Well-Known Member

    Joined:
    Nov 27, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Thailand
    cPanel Access Level:
    Website Owner
    Twitter:
    I am using RHEL5. I copy "world.cgi" (the Perl hello world script) to /tmp and managed to execute it via shell.

    How do I make /tmp noexec?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. john_accu

    john_accu Member
    PartnerNOC

    Joined:
    Mar 12, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Bear in mind that enabling suexec will only stop running:

    /tmp/world.cgi

    it won't prevent:

    perl /tmp/world.cgi

    It has its limitations.
     
    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