LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-10-2004, 02:15 PM   #1
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Rep: Reputation: 30
apache .htaccess basic authentication not working quite right


I'm trying to do some very simple protection of a directory on a web server. Awesome security is not paramount.

Anyway, I have followed the guide to a tee, and now I am given an auth box to authorize with. So far so good.

However, no username/password works. I've created the file with htpasswd -c and pointed apache to it in the .htaccess file. I have specified the users I wish to be allowed to connect.

What's going on? This is the latest apache 1.3.
 
Old 01-10-2004, 02:22 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Can you post a copy of your .htaccess file.

I assume you are being prompted to enter a password?

What is the name and path of the password file? Is it readable by the webserver user?
 
Old 01-10-2004, 02:29 PM   #3
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
here's the .htaccess file....

Code:
AuthType Basic
AuthName "Private"
AuthUserFile /usr/local/apache/passwd/passwords
Require user testuser
yes, the file is readable by apache....
 
Old 01-10-2004, 02:43 PM   #4
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
argh, I fixed it.... forgot to change the override.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Authentication woosting Linux - Software 0 01-20-2005 05:00 AM
[SOLVED] Apache basic authentication gypsy_rabbi Linux - Security 3 01-17-2005 08:09 PM
apache 1.3.27, basic authentication problem Robert0380 Linux - Software 6 06-08-2003 09:51 PM
Apache users - Basic login authentication with Apache2 piglingz Linux - Software 1 04-06-2003 09:52 PM
HTaccess authentication katana Linux - General 7 01-31-2002 03:55 PM


All times are GMT -5. The time now is 01:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration