2.0.50
Main Topics
Browse All TopicsCannot get past this!
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
I created a downloads directory off of /var/www/html/
created .htaccess file containing the following:
AuthUserFile /var/www/html/downloads/.h
AuthGroupFile /dev/null
AuthName "Secure Documents"
AuthType Basic
<Limit GET>
require valid-user
</Limit>
Then created .htpasswd by the following command
htpasswd -c .htpasswd kwdownloads
I put in the password twice and it replies with password updated kwdownloads
bring it up in the web browser and it asks for username and password and after 3 attemps see above.
I also changed permission to 755 on the folder and 744 on htaccess htpasswd
WTF I am at a loss here now Please help
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
this is running on a shared server
when connected via ssh and I look into /etc/httpd/conf, there is no httpd.conf file also checked with ls-la
I am not a unix persion at all . On our web site we want to setup a client login to access a folder on the server to download stuff etc.
It seems that it is not reading the password file. is \var\www\html\. htaccess the correct path?
I scraped putting in my own htaccess because this is a shared server and went in through the cpanel and was able to setup a protected directory and it created the htaccess with the full path etc. see below
AuthUserFile /home/virtual/site28/fst/v
AuthGroupFile /home/virtual/site28/fst/v
AuthName "Client Files"
AuthType Basic
<Limit GET>
require group Client
</Limit>
I created a group Client and a kwaccess user and added it to the client group
this seems to work well but when I log in I get
Forbidden
You don't have permission to access /downloads/ on this server.
So I am right back where I started. This is driving me nuts!!!!
LS results
drwxr-xr-x 2 kwadmin kwadmin 4096 Aug 24 14:37 .
drwxr-xr-x 17 kwadmin kwadmin 4096 Aug 24 13:51 ..
-rw-r--r-- 1 kwadmin kwadmin 194 Aug 24 14:37 .htaccess
-rw-r--r-- 1 kwadmin kwadmin 194 Aug 24 14:35 .htaccess.bak
-rwxrwxrwx 1 kwadmin kwadmin 224526 Aug 24 13:57 KWHelpDesk.exe
Checked /etc/group and the group is not in there.
Doing a recap, I attempted to create .htaccess ect but being this is on a shared server the full path was unkown. Later I found in the control panel that you could setup a group, user, and protect a directory. I went throught all of this and it created the .htaccess etc. When I browse to the directory it asks for the user name and password which works. BUT I receive the following
Forbidden
You don't have permission to access /downloads/ on this server.
--------------------------
Apache/2.0.50 (Fedora) Server at www.kwcomputers.com Port 80
I believe this is a permissions issue from the root directory level as any change to directory seems to have no effect.
the ls command was ran from \var\www\html
the directory in question is DOWNLOADS
-bash-2.05b$ ls -al
total 392
drwxr-xr-x 17 kwadmin kwadmin 4096 Aug 24 13:51 .
drwxr-xr-x 9 root root 4096 Aug 24 13:36 ..
-rw-r--r-- 1 kwadmin kwadmin 384 Aug 19 2005 .htaccess
-rw-r--r-- 1 kwadmin kwadmin 2057 Sep 18 2008 AC_ActiveX.js
-rw-r--r-- 1 kwadmin kwadmin 3233 Sep 18 2008 AC_RunActiveContent.js
drwxr-xr-x 2 kwadmin kwadmin 4096 Sep 18 2008 Scripts
-rw-r--r-- 1 kwadmin kwadmin 792 Aug 4 10:44 Styles.css
drwx------ 2 kwadmin kwadmin 4096 Aug 19 2005 _private
drwxr-xr-x 2 kwadmin kwadmin 4096 Aug 19 2005 _vti_cnf
drwxr-xr-x 2 kwadmin kwadmin 4096 Aug 19 2005 _vti_log
drwxr-xr-x 2 kwadmin kwadmin 4096 Aug 24 13:34 _vti_pvt
-rw-r--r-- 1 kwadmin kwadmin 10927 Aug 24 06:48 certifications.php
-rw-r--r-- 1 kwadmin kwadmin 11217 Aug 24 06:55 contact-us.php
-rw-r--r-- 1 kwadmin kwadmin 8603 Aug 24 06:48 customer-support.php
drwxr-xr-x 2 kwadmin kwadmin 4096 Aug 24 14:35 download
drwxr-xr-x 2 kwadmin kwadmin 4096 Aug 25 09:30 downloads
-rw-r--r-- 1 kwadmin kwadmin 10362 Aug 24 06:48 editorial.php
drwxr-xr-x 2 kwadmin kwadmin 4096 Aug 21 19:19 files
drwxr-xr-x 2 kwadmin kwadmin 4096 Dec 24 2008 formmail
drwxr-xr-x 2 kwadmin kwadmin 4096 Dec 24 2008 formmail2
-rw-r--r-- 1 kwadmin kwadmin 153 Sep 23 2008 google3b36fbf515d01529.htm
drwxr-xr-x 2 kwadmin kwadmin 4096 Aug 21 19:17 images
drwxr-xr-x 2 kwadmin kwadmin 4096 Sep 18 2008 includes
-rw-r--r-- 1 kwadmin kwadmin 12806 Aug 24 06:43 index.php
-rw-r--r-- 1 kwadmin kwadmin 14577 Aug 24 06:48 internet-access-pricing.ph
-rw-r--r-- 1 kwadmin kwadmin 8823 Aug 24 06:48 internet-access.php
-rw-r--r-- 1 kwadmin kwadmin 10616 Aug 24 06:49 links-add.php
-rw-r--r-- 1 kwadmin kwadmin 8216 Dec 3 2008 links.php
-rw-r--r-- 1 kwadmin kwadmin 8487 Aug 24 06:49 network-solutions.php
-rw-r--r-- 1 kwadmin kwadmin 8402 Aug 24 06:49 networking-repair.php
-rw-r--r-- 1 kwadmin kwadmin 7960 Aug 24 06:49 noc.php
-rw-r--r-- 1 kwadmin kwadmin 8280 Aug 24 06:49 products-services.php
-rw-r--r-- 1 kwadmin kwadmin 10012 Aug 24 06:49 seo.php
-rw-r--r-- 1 kwadmin kwadmin 8854 Aug 24 06:49 site-map.php
-rw-r--r-- 1 kwadmin kwadmin 2087 Jun 12 2007 sitemap.xml
drwxr-xr-x 7 kwadmin kwadmin 4096 May 16 2008 support
-rw-r--r-- 1 kwadmin kwadmin 8922 Aug 24 06:49 technical-guidelines.php
-rw-r--r-- 1 kwadmin kwadmin 19955 Aug 24 06:49 terms-of-use.php
-rw-r--r-- 1 kwadmin kwadmin 7293 Aug 24 06:49 testimonials.php
-rw-r--r-- 1 kwadmin kwadmin 7354 Aug 24 06:49 thank_you.php
drwxr-xr-x 2 kwadmin kwadmin 4096 May 11 2006 usage
-rw-r--r-- 1 kwadmin kwadmin 20212 Aug 24 06:49 voip-services-pricing.php
-rw-r--r-- 1 kwadmin kwadmin 8626 Aug 24 06:49 voip-services.php
-rw-r--r-- 1 kwadmin kwadmin 9373 Aug 24 06:49 web-design.php
-rw-r--r-- 1 kwadmin kwadmin 12012 Aug 24 06:49 web-hosting-pricing.php
-rw-r--r-- 1 kwadmin kwadmin 9702 Aug 24 06:47 web-hosting.php
drwxr-xr-x 4 kwadmin kwadmin 4096 May 11 2006 webalizer
-bash-2.05b$
This is the logs also the content of the access and error logs has an old date in them
I will try your other reccommedation now, and give you the results
access_log access_log.3.gz error_log.1 error_log.5.gz
access_log.05-16-08 access_log.4.gz error_log.2.gz
access_log.1 access_log.5.gz error_log.3.gz
access_log.2.gz error_log error_log.4.gz
-bash-2.05b$
-bash-2.05b$ cat access_log
66.249.72.109 - - [16/May/2008:05:32:08 -0400] "GET /robots.txt HTTP/1.1" 404 295 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot
66.249.72.109 - - [16/May/2008:05:32:08 -0400] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot
-bash-2.05b$
[Fri May 16 05:32:08 2008] [error] [client 66.249.72.109] File does not exist: /home/virtual/site28/fst/v
-bash-2.05b$
This seems interesting:
[Tue Aug 25 10:19:44 2009] [error] [client 64.139.135.142] user kwaccess not found: /downloads/, referer: http://kwcomputers.com/cus
[Tue Aug 25 10:19:49 2009] [error] [client 64.139.135.142] Directory index forbidden by rule: /home/virtual/site28/fst/v
[Tue Aug 25 10:19:39 2009] [error] [client 64.139.135.142] File does not exist: /home/virtual/site28/fst/v
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
[Tue Aug 25 10:19:42 2009] [error] [client 64.139.135.142] File does not exist: /home/virtual/site28/fst/v
exclog: write failed (fd 3, errno 27):File too large
[Tue Aug 25 10:01:44 2009] [error] [client 64.139.135.142] File does not exist: /home/virtual/site28/fst/v
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
exclog: write failed (fd 3, errno 27):File too large
[Tue Aug 25 10:01:52 2009] [error] [client 64.139.135.142] Directory index forbidden by rule: /home/virtual/site28/fst/v
exclog: write failed (fd 3, errno 27):File too large
Thanks it was almost 2.0 gb thats big I cleared it and and attempted to get to the directory and this is was gernated in the error_log
Tue Aug 25 11:03:40 2009] [error] [client 64.139.135.142] File does not exist: /home/virtual/site28/fst/v
[Tue Aug 25 11:03:43 2009] [error] [client 64.139.135.142] File does not exist: /home/virtual/site28/fst/v
[Tue Aug 25 11:03:52 2009] [error] [client 64.139.135.142] Directory index forbidden by rule: /home/virtual/site28/fst/v
Business Accounts
Answer for Membership
by: BlundeyPosted on 2009-08-24 at 09:09:06ID: 25169721
What version of apache are you using?