Home
 

Customer Support

Search for keywords:

Browse by category:

Why do I get: Sbox error file not world executable?

All cgi scripts (except PHP scripts ending in .php, .php3, .php4 or .phtml) need world executable file permissions in order to run. If the permissions on the file are wrong, then Sbox will refuse to execute it and give you an error message like:

Sbox Error
/www/vhosts/e/example.com/htdocs/www/cgi-bin/af.cgi not world executable

where "/www/vhosts/e/example.com" is the true path to your home directory.

To fix this at a shell prompt or command-line ftp prompt, telnet/ssh or ftp to the server, which will put you in your home directory once you are logged in. Then type this at the command prompt:

chmod o+x htdocs/www/cgi-bin/af.cgi


where "htdocs/www/cgi-bin/af.cgi" is the relative path from your home directory to the cgi script that is causing the Sbox error.

Many graphical ftp programs have a point and click way to change permissions on a file as well.

When permissions are set correctly, the last symbol in the permission column (1st column) of a detailed file listing will be an "x". For example, if your formmail.pl cgi script is giving you this error, you need to change the permissions so that it looks like this:
-rw-r--r-x1yourusernameyourusername59734Jan 30 2001formmail.pl
For more information about unix file permissions and chmod, check out these links:

  • http://www.perlfect.com/articles/chmod.shtml
  • http://www.cgi101.com/help/unixhelp.html
  • http://acm.unl.edu/resources/tutorial.php#perm
  • http://pluto.iis.nsk.su/cgi-bin/man-cgi?chmod+1

    User-Contributed Notes

    add a note
    There are no user-contributed notes for this topic.

    Related Questions:


    How do I use sendmail with perl?

    How do I use cgi scripts?

    My formmail.pl script from Matt's Script Archive doesn't work.

    Why does Sbox say "no such file or directory" but the files are there?

    What Perl modules are installed?

    Do you offer CGI? What scripts can I install?

    I can't get the python socket module to work?

    What is the path to perl or some other program?

    Why do I get: Sbox error file is world writable?

    Sendmail does not work or does not accept my optional arguments.

    Importing the Python cgi module doesn't work.

    How do I use MySQL with Python?

    What version of Python do you support and what modules are available?

    Why do I get: Sbox Error exec of [some script] failed (Exec format error)?

    Why do I get: Sbox error the directory containing [some script] is world writable?

    Why do I get: Sbox Error exec of [some script] failed (Permission denied)

    Why do I get: Sbox error: cannot run suid scripts

    Why do I get: Sbox Error exec of [some script] failed (Resource temporarily unavailable)

    Browse Categories:

    Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales


  • Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us