Share your knowledge at the LQ Wiki.
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 04-15-2003, 08:30 AM   #1
Registered: Feb 2003
Posts: 50

Rep: Reputation: 15

I've got apache running and webmin, whats the easiest way to password protect a directory now? I dont know how to use .htaccess
Old 04-15-2003, 08:39 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
This is asked all the time with many replies on how to setup htaccess and with great links to great documentation to setup.

The docs at have very easy and detailed instructions on how to set this up:

For 2.0 -

For 1.3 -
Old 04-16-2003, 09:11 AM   #3
Registered: Feb 2003
Posts: 50

Original Poster
Rep: Reputation: 15
Okay i did that. Now whenever I access the page it asks for the username/password and the Realm is set correctly and all, but yet when i put the pw in it just keeps asking for it over and over until a few times then it shows me a page saying im not authorized. i set the pw file up right.
Old 04-16-2003, 10:12 AM   #4
Registered: Feb 2003
Posts: 50

Original Poster
Rep: Reputation: 15
it gives me :

Authentication required!
This server could not verify that you are authorized to access the URL "/". You either supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
In case you are allowed to request the document, please check your user-id and password and try again.
If you think this is a server error, please contact the webmaster
Error 401
Wed 16 Apr 2003 10:12:31 AM CDT
Apache/2.0.40 (Red Hat Linux)
Old 04-28-2003, 01:01 PM   #5
LQ Newbie
Registered: Feb 2003
Posts: 7

Rep: Reputation: 0
make sure the password file is readable by apache. I created mine using root and only root was able to read it!



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 Help GUIPenguin Linux - Security 6 02-22-2005 02:25 PM
.htaccess luca2005 Linux - Software 2 01-01-2005 07:38 PM
.htaccess kidestranged Linux - General 1 01-26-2004 10:18 AM
.htaccess raek Linux - Newbie 1 08-17-2002 11:53 PM
.htaccess bretthoward Linux - Security 5 04-02-2001 03:33 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:09 AM.

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