Did you know LQ has a Linux Hardware Compatibility List?
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-24-2003, 05:00 PM   #1
Registered: Mar 2002
Distribution: Ubuntu 6.10
Posts: 165

Rep: Reputation: 30
Help with .htpasswd and .htaccess

Okay for some reason I am not able to get this to work.

I added the .htpasswd file into a directory above the /www. In the .htpasswd file I added the following lines


mikee : password
now in the directory I want to password protect I put a .htaccess file in the directory. And put in the following info


AuthUserFile /home/mikeex/safedir/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

require valid-user
Doesn't work! Am I doing something wrong? If you could help that would be greatly appreciated!
Old 03-24-2003, 05:20 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
Try following these steps:
Old 03-24-2003, 05:20 PM   #3
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
Check the httpd.conf file and find the line that says AllowOverride that corresponds to the document root and if it says none change it to AuthConfig.
Old 03-25-2003, 11:41 AM   #4
Registered: Mar 2002
Distribution: Ubuntu 6.10
Posts: 165

Original Poster
Rep: Reputation: 30
jstu: i don't host this server, so I don't have access to the httpd.conf file.

trickykid: This looks like a great read, thanks for the link.

I thank you both for your replies. Have a good one.


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
.htaccess .htpasswd plisken Linux - General 5 05-21-2006 02:44 PM
htaccess/htpasswd not authenticating BrianK Linux - Software 3 12-10-2004 03:52 PM
.htaccess / .htpasswd inq Robin01 Linux - Newbie 1 12-20-2003 06:36 PM
About .htaccess & .htpasswd edhan Linux - Newbie 3 10-17-2003 01:16 AM
Cannot see .htaccess and .htpasswd files John_Saunders Linux - Newbie 2 07-21-2002 10:14 AM

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