http://qs1969.pair.com?node_id=183690


in reply to Unix Question about Environment Variables

prompt$ export REMOTE_USER="foo"

But I doubt that's what you want to do. That just sets it for the current and any child shells invoked. If you are looking for the string as passed by a webserver to your CGI script, then you are limited to pages that are protected by an .htaccess file.
No .htaccess, no $ENV{'REMOTE_USER'}.