You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Matthews <pa...@cathedral.qld.edu.au> on 2006/03/22 02:52:18 UTC
[users@httpd] Password protect apache home directories
hi there,
what i'm trying to do is set apache so that when i user trys to access
there home directory http://www.example.com/~username they have to enter
there password/username? without adding in each home directory into my
httpd.conf file and then adding require valid username is there a way i
can do this automatically?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Password protect apache home directories
Posted by Nick Kew <ni...@webthing.com>.
On Wednesday 22 March 2006 11:19, Paul Matthews wrote:
> [Wed Mar 22 20:58:19 2006] [error] [client 192.168.1.34] access to /~root/
> failed, reason: unknown require directive:"file-owner"
Looks clear enough to me. You don't have the module that implements
file-owner loaded.
To answer your next two questions, it's in modules/aaa in your source
directory, and the page in the documentation to look for how to build it
is apxs.
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Password protect apache home directories
Posted by Paul Matthews <pa...@cathedral.qld.edu.au>.
> On Wednesday 22 March 2006 10:12, Paul Matthews wrote:
>
>> okay i'm not having a lot of luck with this, can just ask a simple
>> quesion
>> then, how can find out if i have authz_owner_module installed and is
>> being used by apache?
>
> Look in your error log.
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
this is what i found in the /etc/log/httpd/error_log
[Wed Mar 22 20:53:56 2006] [notice] mod_python: Creating 4 session mutexes
based on 256 max processes and 0 max threads.
[Wed Mar 22 20:53:57 2006] [notice] Apache/2.0.54 (Fedora) configured --
resuming normal operations
[Wed Mar 22 20:58:19 2006] [error] [client 192.168.1.34] access to /~root/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:58:19 2006] [error] [client 192.168.1.34] access to /~root/
failed, reason: user root not allowed access
[Wed Mar 22 20:58:21 2006] [error] [client 192.168.1.34] access to /~root/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:58:21 2006] [error] [client 192.168.1.34] access to /~root/
failed, reason: user root not allowed access
[Wed Mar 22 20:58:23 2006] [error] [client 192.168.1.34] access to /~root/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:58:23 2006] [error] [client 192.168.1.34] access to /~root/
failed, reason: user root not allowed access
[Wed Mar 22 20:58:37 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:58:37 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: user pma not allowed access
[Wed Mar 22 20:58:39 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:58:39 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: user pma not allowed access
[Wed Mar 22 20:59:04 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:59:04 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: user pma not allowed access
[Wed Mar 22 20:59:10 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:59:10 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: user pma not allowed access
[Wed Mar 22 20:59:12 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:59:12 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: user pma not allowed access
[Wed Mar 22 20:59:14 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: unknown require directive:"file-owner"
[Wed Mar 22 20:59:14 2006] [error] [client 192.168.1.34] access to /~pma/
failed, reason: user pma not allowed access
but as you can see on this website
http://httpd.apache.org/docs/2.2/mod/mod_authz_owner.html
the command file-owner is real ...
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Password protect apache home directories
Posted by Nick Kew <ni...@webthing.com>.
On Wednesday 22 March 2006 10:12, Paul Matthews wrote:
> okay i'm not having a lot of luck with this, can just ask a simple quesion
> then, how can find out if i have authz_owner_module installed and is
> being used by apache?
Look in your error log.
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Password protect apache home directories
Posted by Paul Matthews <pa...@cathedral.qld.edu.au>.
>> hi there,
>>
>> what i'm trying to do is set apache so that when i user trys to access
>> there home directory http://www.example.com/~username they have to enter
>> there password/username? without adding in each home directory into my
>> httpd.conf file and then adding require valid username is there a way i
>> can do this automatically?
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
> I've found this website
>
> http://httpd.apache.org/docs/2.2/mod/mod_authz_owner.html
>
> but i'm not sure if i have the mod_authz_owner
>
> can someone tell me how to find out if i do?
>
> if someone here has ever used this mod or knows how to use it with ldap
> can they tell me about it.
>
> this is my current setup and it's not working, it's just denying me access
>
> <Directory /home/*/public_html>
> AuthType Basic
> AuthName "Case Network ID"
> AuthLDAPURL "ldap://127.0.0.1/ou=people,dc=fedora,dc=directory,dc=server"
> AuthLDAPBindDN "uid=root,ou=people,dc=fedora,dc=directory,dc=server"
> AuthLDAPBindPassword "password"
> Satisfy All
> require file-owner
> </Directory>
>
> when i change it to
>
> require valid-user it works
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
okay i'm not having a lot of luck with this, can just ask a simple quesion
then, how can find out if i have authz_owner_module installed and is
being used by apache?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Password protect apache home directories
Posted by Paul Matthews <pa...@cathedral.qld.edu.au>.
> hi there,
>
> what i'm trying to do is set apache so that when i user trys to access
> there home directory http://www.example.com/~username they have to enter
> there password/username? without adding in each home directory into my
> httpd.conf file and then adding require valid username is there a way i
> can do this automatically?
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
I've found this website
http://httpd.apache.org/docs/2.2/mod/mod_authz_owner.html
but i'm not sure if i have the mod_authz_owner
can someone tell me how to find out if i do?
if someone here has ever used this mod or knows how to use it with ldap
can they tell me about it.
this is my current setup and it's not working, it's just denying me access
<Directory /home/*/public_html>
AuthType Basic
AuthName "Case Network ID"
AuthLDAPURL "ldap://127.0.0.1/ou=people,dc=fedora,dc=directory,dc=server"
AuthLDAPBindDN "uid=root,ou=people,dc=fedora,dc=directory,dc=server"
AuthLDAPBindPassword "password"
Satisfy All
require file-owner
</Directory>
when i change it to
require valid-user it works
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org