Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-07-2003, 09:26 AM   #1
LQ Newbie
Registered: Nov 2002
Location: Amherst, MA
Distribution: Red Hat Enterprise Linux 3
Posts: 12

Rep: Reputation: 0
Annoying Apache password problems...

I've got Apache running on a new server, and set up a password protected directory on the web server at: /var/www/html/secure

Here's the .htaccess file:

AuthUserFile /var/www/.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic

require user oliver

I used the following command to create the password file and fill an initial password for user oliver:
htpasswd -c /var/www/.htpasswd oliver

Asks for password, seems to work fine. Looking at the .htpasswd file shows that there is indeed an encrypted password there, like there should be.

The problem is that when I try to access the password protected portion of the site, it rejects my login info and eventually sends me to the Error 401 page.

Any ideas?

EDIT: Yeah, I fixed it. Seems you need to set the owner of the password file to apache (ex: chown apache:apache .htpasswd)

Last edited by oaaltone; 03-09-2003 at 06:44 PM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
some annoying problems linuxman356 SUSE / openSUSE 3 07-24-2005 08:05 PM
How to get rid of annoying MS worm log entries in Apache 320mb Linux - Security 1 10-18-2004 12:49 AM
Mouse problems.. very annoying xanas3712 Debian 3 05-11-2004 12:02 PM
A couple of annoying problems... LSD Debian 1 08-20-2003 06:20 AM
Annoying windoze problems in my Apache server logs MasterC Linux - Security 5 02-12-2003 06:15 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:18 PM.

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