Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 16845 invoked by uid 500); 10 Sep 2001 17:55:27 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 16812 invoked by uid 500); 10 Sep 2001 17:55:27 -0000 Delivered-To: apmail-apache-1.3-cvs@apache.org Delivered-To: apmail-httpd-docs-1.3-cvs@apache.org Date: 10 Sep 2001 17:51:31 -0000 Message-ID: <20010910175131.16578.qmail@icarus.apache.org> From: coar@apache.org To: httpd-docs-1.3-cvs@apache.org Subject: cvs commit: httpd-docs-1.3/htdocs/manual/mod mod_auth.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N coar 01/09/10 10:51:31 Modified: htdocs/manual/mod mod_auth.html Log: Foo, I said see the docco for an example and then didn't include one.. Revision Changes Path 1.26 +24 -0 httpd-docs-1.3/htdocs/manual/mod/mod_auth.html Index: mod_auth.html =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_auth.html,v retrieving revision 1.25 retrieving revision 1.26 diff -u -u -r1.25 -r1.26 --- mod_auth.html 2001/09/10 17:14:51 1.25 +++ mod_auth.html 2001/09/10 17:51:31 1.26 @@ -106,6 +106,30 @@
+

Example of Require file-owner

+

+Consider a multi-user system running the Apache Web server, with +each user having his or her own files in ~/public_html/private. +Assuming that there is a single AuthUserFile database that lists all +of their usernames, and that their Web usernames match the ones that +actually own the files on the server, then the following stanza would +allow only the user himself access to his own files. User jones +would not be allowed to access files in +/home/smith/public_html/private unless they were owned +by jones instead of smith. +

+
  +    <Directory /home/*/public_html/private>
  +        AuthType Basic
  +        AuthName MyPrivateFile
  +        AuthUserFile /usr/local/apache/etc/.htpasswd-allusers
  +        Satisfy All
  +        Require file-owner
  +    </Directory>
  +
+ +
+

AuthGroupFile directive