I'm trying to get the username of a user that has logged in, I'm using
print "RU: ".$RemoteUser;
and all I get is a blank variable. It appears that then $ENV is only returning the remote user for the directory were the script is run from, ie: if I password protect that cgi-bin directory it returns the remote user name. How can I get the remote user name for another directory.