LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 03:39 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What does .htaccess contain? What are permissions on .htaccess, .htpasswd, and index.html? Does Apache have "AllowOverrides" enabled.
 
Old 03-17-2005, 04: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



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 01:50 AM
newbie security question.. BobL Linux - Newbie 3 01-05-2005 02:55 AM
Security for a newbie mdktechie Linux - Security 1 10-01-2003 03:41 PM
Newbie and SSH Security KnightAzul Linux - Security 3 09-11-2003 06:37 PM
newbie security. toothfish Slackware 2 04-29-2002 08:56 AM

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

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration