LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-07-2003, 08:26 AM   #1
oaaltone
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 05:44 PM.
 
  


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


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


All times are GMT -5. The time now is 09:08 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