LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-24-2003, 04:00 PM   #1
MikeeX
Member
 
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

Quote:

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

Quote:

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, 04:20 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Try following these steps:

http://www.apacheweek.com/features/userauth
 
Old 03-24-2003, 04:20 PM   #3
jstu
Member
 
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, 10:41 AM   #4
MikeeX
Member
 
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.
 
  


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


All times are GMT -5. The time now is 07:24 PM.

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