in reply to CGI: A Tale of Two Usernames

You can use a setuid wrapper such as CGIwrap, or, if you are using the Apache web server, the SUexec facility of the webserver.

/J\