Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jul 2009
    Posts
    42

    Exclamation How to prevent running binary files.

    Hello,

    Do you know how can I prevent running binary files from
    cgi or shell access or php ...?
    like this:
    sh: /path/file: Permission denied

  2. #2
    bhd
    bhd is offline
    Member
    Join Date
    Sep 2003
    Location
    JNB ZA
    Posts
    144

    Default Re: How to prevent running binary files.

    Depends what binary it is. Usually making sure it's ownership is root:root and changing it's permissions to 700 does the job.

  3. #3
    Member
    Join Date
    Jul 2009
    Posts
    42

    Thumbs down Re: How to prevent running binary files.

    Quote Originally Posted by bhd View Post
    Depends what binary it is. Usually making sure it's ownership is root:root and changing it's permissions to 700 does the job.
    Thank you!
    but I mean is user upload a binary and try to excute it!
    not specific file to change the permission and owner:P

  4. #4
    Member
    Join Date
    Jul 2009
    Posts
    42

    Question Re: How to prevent running binary files.

    Hi,

    There is many experts in this forums,
    nobody know?

    I want to prevent excuting binary files in /home,
    then users can't excute any binary file by command from perl or php...


    Thank you!

  5. #5
    Member ModServ's Avatar
    Join Date
    Oct 2006
    Location
    Egypt
    Posts
    228
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: How to prevent running binary files.

    Hello,

    You can make a lot of options to do that such as

    suphp.conf
    php.ini

    Also don't forget about
    /etc/fstab => noexec,nosuid

    ModServ for Hosting & Web Services Solutions
    URL: http://www.modserv.com.eg

Similar Threads & Tags
Similar threads

  1. How do I prevent word press cron jobs from running on the server
    By audrey in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-09-2011, 01:56 PM
  2. Replies: 0
    Last Post: 02-18-2010, 08:29 PM
  3. Prevent Backup from running on a specific account
    By psychodreams in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-15-2009, 04:45 PM
  4. uploading image files in binary mode
    By weeburty in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-01-2007, 05:54 PM
  5. Corrupt Binary Files
    By Neji Hyuga in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-20-2004, 12:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube