Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-28-2006, 01:43 PM   #1
Registered: Sep 2005
Distribution: Debian
Posts: 304

Rep: Reputation: 30
Apache 2 is not working right when i try to authenticate users

I have edited .htaccess on the directory

AuthName "Entre com seu usuário e senha. Atenção, o acesso a esse site é restrito a pessoas autorizadas, respeite a privacidade dos outro!!!"
AuthType Basic
AuthUserFile "/var/www/ivan/.user.pwd"
Require valid-users
Then i have done

htpasswd2 -c /var/www/ivan/.user.pwd user
Tried to access but even trying the right password it gives me

Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Old 03-01-2006, 02:22 AM   #2
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
Allow valid-user, no 's'.
Also make sure AllowOverride is as you want it to be.
Old 03-01-2006, 06:06 AM   #3
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30


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
Authenticate samba users against PAM yapp Linux - Networking 0 11-24-2005 06:59 AM
authenticate samba users using the NIS manojthakkar Linux - Networking 1 07-25-2005 08:48 PM
how to authenticate external users but bypass prompt on local LAN users? taiwf Linux - Security 5 07-13-2005 10:01 AM
ssh fails to authenticate some users cochoa Linux - Software 1 12-10-2004 08:43 AM
authenticate samba users using the NIS manojthakkar Linux - General 1 02-02-2004 03:25 PM

All times are GMT -5. The time now is 10:19 AM.

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