I want to run a specific (perl) CGI script on my webserver. This works reasonable, but it would work immensely better if the CGI script would be running as the currently authenticated user.
Is there a way to do that, e.g. with a wrapper and sudo?
The virtualhost config is as follows:
DocumentRoot /path/to/script <Directory /path/to/script> Options FollowSymLinks +ExecCGI AddHandler cgi-script .cgi AuthType Basic AuthName "Authenticate" # This authenticates against the local NIS PerlAuthenHandler Apache2::AuthenNIS PerlAuthzHandler Apache2::AuthzNIS PerlSetVar AllowAlternateAuth no Require valid-user </Directory>