To prevent a virtual server’s CGI programs from interfering with other users, the CGI programs must be stored in a unique directory and executed with the permissions of a unique UNIX user and group.
Create the UNIX user and group. The exact steps required to create a user and group vary by operating system. For instructions, refer your operating system's documentation.
Log in as a superuser.
Change to the document root directory for the virtual server.
Create the cgi-bin directory and set appropriate permissions.
mkdir cgi-bin chown user:group cgi-bin chmod 755 cgi-bin
Set the virtual server’s CGI directory, user, and group in one of the following ways.
Modify the obj.conf file.
Use the user and group parameters of the send-cgi Service SAF in the obj.conf file. For detailed instructions, see the Sun Java System Web Server 7.0 Update 3 Administrator’s Configuration File Reference.
In the Admin Console,
Select Common Tasks tab. .
Select CGI Directories from the Virtual Server Tasks list
The CGI Settings window is displayed.
Type the user and the group that can execute CGI programs.
For more information on CGI directories, see the Sun Java System Web Server 7.0 Update 3 Administrator’s Guide.
Use the set-cgi-prop command to define a unique CGI directory, UNIX user and group for a virtual server.
/wadm set-cgi-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 user=admin group=group