I'm running FreeBSD 7 and apache-2.2.13.
I am trying to debug a cgi script at http://www.example.org/cgi-bin/printenv . This script is a simple script written in Bourne shell.
I would like to run this script from the unix commandline, as user 'www'. However, the user 'www' does not have a shell (by design). This means I cannot 'su' to user 'www' to execute this script:
# su www -c /usr/local/www/apache22/cgi-bin/printenv This account is currently not available. # su - www -c /usr/local/www/apache22/cgi-bin/printenv su: no directory
How can I run this script as user 'www'?