Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using AuthType Digest to password protect a directory 2

Status
Not open for further replies.

swillett

Programmer
Mar 27, 2005
2
0
0
US
I am trying to set up a directory that is password protected. I placed the following Directory tag in my httpd.conf file:
<Directory "/home/myhome/public_html/internal">
AuthType Digest
AuthName "My Internal Files"
AuthDigestFile /etc/httpd/passwd/passwords
Require valid-user
Options +Indexes
</Directory>

and set up a password file for the realm "My Internal Files" using htdigest. The browser (I am using Firefox 1.0) prompts me for a user name and password if I try to browse in the directory, but never accepts my responses - I just get the prompt back, as if the password were not correct.

Any ideas of what I might be doing wrong?

Steve Willett
 
Yes, I certainly tried to follow the instructions. The password file exists with an entry for the user I am trying to connect as.

Steve
 
swillett,

You should delete and recreate the /etc/httpd/passwd/passwords file with htdigest -c, make sure the permissions are correct (644 should do it), and of course restarting apache won't hurt anything.

If still no joy, please post your OS version and the version of Apache that you are using.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top