LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2005, 02:52 PM   #1
bungle3
LQ Newbie
 
Registered: Jan 2005
Posts: 25

Rep: Reputation: 15
newbie apache security help


Hi

I installed apache a few days ago and have been experimenting with it. Have been working though examples in a Apache book. Currently on the subject of security, what i want to do is to password protect a directory in my website. I am trying Basic HTTP Authentication, have created the userfile and groupfile and saved them in the apache directory. Have also created a .htaccess text file which the book tells me to save in the directory i want to protect. But when i access the directory through a browser i get stright in without been asked for a password. Anyone had similar problems and know the solution or knows a good link to somewhere that does.

Many thanks Martin
 
Old 03-17-2005, 04:39 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
What does .htaccess contain? What are permissions on .htaccess, .htpasswd, and index.html? Does Apache have "AllowOverrides" enabled.
 
Old 03-17-2005, 05:46 PM   #3
bungle3
LQ Newbie
 
Registered: Jan 2005
Posts: 25

Original Poster
Rep: Reputation: 15
.htaccess contains:

AuthName "mod_auth Test Realm"
AuthType Basic
AuthUserFile /usr/local/apache2/auth/userfile
AuthGroupFile /usr/local/apache2/auth/groupfile
require group admins friends

I think because of the way i have set it up that everything need the root permission. Is this the wrong way to do it?

I have set AllowOverides to 'all' but no luck
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
security newbie, but not Linux newbie. advice on secure delete tools mattie_linux Linux - Security 19 08-15-2005 02:50 AM
newbie security question.. BobL Linux - Newbie 3 01-05-2005 03:55 AM
Security for a newbie mdktechie Linux - Security 1 10-01-2003 04:41 PM
Newbie and SSH Security KnightAzul Linux - Security 3 09-11-2003 07:37 PM
newbie security. toothfish Slackware 2 04-29-2002 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration