in reply to .htaccess and $ENV{

If your user list is dynamic, your script needs a way to update .htpasswd (or whatever you call the password file). This is the section of my admin script that writes the .htpasswd file from a hash $user_hash{id}="password";

# LOCATION OF PASSWORD FILE $PASSFILE="/usr/home/web_directory/protected_dir/.htpasswd"; open(WRT,">$PASSFILE"); foreach $id (keys %user_hash){ $pass2 = crypt($user_hash{$id}, "AB"); print WRT "$id:$pass2\n"; } close(WRT);

You can change 'AB' in the crypt statement to any two letter combination!

oakbox
"If what I'm saying doesn't make sense, that's because sense cannot be made, it's something that must be sensed"-J.S. Hall