| |
CGI-wrap on www
Setting up the Directory
To set up your www account for CGIwrap, create a subdirectory called cgi-bin within your home directory. Do this by navigating to your home directory and typing
All CGI scripts must be placed in this cgi-bin subdirectory.
Setting the Permissions
Make sure that the cgi-bin directory has the correct permissions. It
needs to be executable, so type
to make the cgi-bin directory executable.
Also remember that the scripts themselves need to be set as executable so
you'll need to type
(where scriptname is the name of your CGI script) on each of your scripts
so that they'll function properly.
Calling the CGI script from your HTML form
Using CGIwrap, this is how your scripts must be called in the ACTION tag
of your form:
http://www.wesleyan.edu/cgi/userid/scriptname
note:userid is your condor account name and scriptname is the name
of your cgi script
Debugging your CGI script
For debugging information go to the URL:
http://www.wesleyan.edu/cgid/userid/scriptname
note:userid is your www account name and scriptname is the name
of your cgi script
Security Features
Cgiwrapper is software designed to limit the damage a user could
potentially do to the system through a CGI script. Cgiwrapper runs CGI
scripts as the owner of the script, rather than as the user nobody which
may have more permissions.
CGIwrap test
The following is an example of a cgiwrapper running the script as its
owner.
http://condor.wesleyan.edu/cgi/userid/testme.pl
Check out the debugging info at
|