Technical Services has installed a utility called CGIWrap on the University Web server www3.uakron.edu. This enables Information Providers and Web publishers on this system to allow the execution of CGI scripts under their own user account. CGI scripts executed in this manner will thus be restricted to the permissions of the user account under which they are run.
Additional information about this utility can be found in the standard CGIWrap documentation. Please note that the usage notes below have been customized for our environment. As a result, they may differ somewhat from the standard instructions found at that location.
Limiting the permissions of CGI scripts to those of the responsible user account will reduce (although not completely eliminate) the possibility of a CGI compromising system security or integrity. Damage done to the system will be the responsibility of the user account under which the CGI was run.
mkdir $HOME/cgi-bin
http://www3.uakron.edu/cgi-bin/cgiwrap/username/scriptname
where username is your user account name and scriptname is the name of the script. The scriptname should end in .cgi, to follow local convention.
ls -l $HOME/cgi-bin/scriptname
groups
Your default group should be the first one listed.
To see the group ownership of the file, login to www3.uakron.edu and type:
ls -l $HOME/cgi-bin/scriptname
To change the group ownership of the file, you must be the owner of the file and a member of the group to which you are changing it. To change the group ownership, login to www3.uakron.edu and type:
chgrp newgroupname $HOME/cgi-bin/scriptname
chmod a+x $HOME/cgi-bin/scriptname
Page maintained by: Technical Services
Last modified: Tuesday, 31-Jan-06 17:05:18