LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-03-2002, 01:03 PM   #1
mwmethe
LQ Newbie
 
Registered: Jun 2001
Location: Southwest New Hampshire
Distribution: Mandrake, RedHat
Posts: 22

Rep: Reputation: 15
Angry .htaccess problem


Hello All,

Having some problems with .htaccess authentication. I have finally gotten .htaccess to ask for credentials when I access a given page. The problem is, no matter what I enter, I CANT get in!

I did 'htpasswd -c /etc/.htpasswd username and created the file with a password. I did this a couple times (subsequent times without the -c switch) for new users and they dont work either. It's almost as if .htaccess is looking at some far off place for .htpasswd instead of where I specify.

###.htaccess
AuthUserFile /etc/.htpasswd
AuthGroupFile /dev/null
AuthName "Secure Stuff!!!"
AuthType Basic

<Limit GET POST>
require valild-user
</Limit>

As I said, .htpasswd DOES exist at /etc/.htpasswd

Thanks in advance for any tips!

mwm
 
Old 08-31-2002, 12:32 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
what always helps is checking the error log file ... do you have read access to the files?
 
  


Reply



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
Apache problem .htaccess fipeso Linux - Networking 2 05-12-2005 11:56 PM
Strange htaccess problem (it ignored!) belorion Linux - Software 2 03-01-2005 02:32 PM
.htaccess problem lothario Linux - Software 0 01-22-2005 05:20 AM
problem getting .htaccess files work wiggywag Slackware 6 02-17-2004 01:21 PM
.htaccess problem Ramon_E Linux - Security 3 10-20-2003 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration