Re: Allowing users to view content of password-protected directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

> My problem is that I want users who have logged in to the
> password-protected directory to be able to view a listing of the
> content of the directory and its subdirectories. None of the
> directories have index files, so under normal conditions, an attempt
> to access the directory would yielding a listing of the directory
> content.
>
> However, the present coding (or my hosting company's configuration)
> does not allow that. An attempt to view
> http://www.cbar.pro/subscribers/ (the protected directory) yields the
> following error message, even when the user has logged in through
> password access:
>
> 403 Permission Denied
> You do not have permission for this request /subscribers/
>

I tried this with a cPanel account and an .htaccess file that was nearly
identical to yours and it worked for me (It showed the directory listing
after I logged in).  I would try the following:

1) Temporarily remove the password protection on the directory you want
to protect and then re-add it.  Use the cPanel File Manager to help
ensure that the corresponding passwd file is created.

2) Verify that the corresponding passwd file has been created.  Make
sure that it's there, that it has the username you expect, and that the
directory it is in matches the directory in your .htaccess
(/home/bankrup2/.htpasswds/public_html/subscribers/passwd).

3) If that doesn't work, try to temporarily add an index.html file in
the directory you're trying to protect.  This might provide a clue as to
whether or not it has anything to do with the directory listing and the
password protection not working together.

4) If it still doesn't work, I would suggest opening a ticket with your
hosting provider.  If they can't resolve it, they should at least be
able to let you know why it's not possible.

I hope that helps,
-Michael S.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux