[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

authz_svn_module Per-Directory ACL

From: Martin Struwe <mastr_at_von-oertzen.org>
Date: 2005-01-25 10:41:18 CET

Can somebody help me with my authz_svn_module Settings?
I have read "Per-Directory Access Control" at
http://svnbook.red-bean.com/en/1.1/ch06s04.html#svn-ch-6-sect-4.4.2

$ svnadmin create test
$ svn co test test-wc
$ mkdir test-wc/dir
$ echo 1 > test-wc/file1.txt
$ echo 2 > test-wc/dir/file2.txt
$ echo 3 > test-wc/dir/file3.txt
$ svn add test-wc/*
$ svn ci -m '' test-wc

$ cat /etc/apache2/mods-enabled/dav_svn.conf
<Location /svn>
   DAV svn
   SVNParentPath /var/lib/svn/
   AuthType Basic
   AuthName "Subversion Repository"
   AuthUserFile /etc/apache2/dav_svn.passwd
   AuthzSVNAccessFile /etc/apache2/dav_svn.authz
   Satisfy any
   Require valid-user
</Location>

$ cat /etc/apache2/dav_svn.authz
[test:/]
*=r
user=rw
[test:/dir]
*=
user=rw
[test:/dir/file2.txt]
user=

$ svn co --username user http://localhost/svn/test/dir
Authentication realm: <http://localhost:80> Subversion Repository
Password for 'user':
A dir/file3.txt
Checked out revision 1.

[great, file2.txt is hidden!]

$ svn co --username user http://localhost/svn/test
A test/file1.txt
Checked out revision 1.

[here i miss 'dir/file3.txt' and the password-question for 'user']

regards, martin.

$ svn --version
svn, version 1.1.3 (r12730)
    compiled Jan 20 2005, 07:31:21
Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
   - handles 'http' schema
   - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
   - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
   - handles 'svn' schema

$ dpkg -l libsvn0 libapache2-svn subversion python2.3-subversion subversion-tools libsvn-core-perl apache2-common

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii libsvn0 1.1.3-1 shared libraries used by Subversion (aka. sv
ii libapache2-svn 1.1.3-1 apache modules for Subversion (aka. svn)
ii subversion 1.1.3-1 advanced version control system (aka. svn)
ii python2.3-subv 1.1.3-1 python modules for interfacing with Subversi
ii subversion-too 1.1.3-1 assorted tools related to Subversion (aka. s
ii libsvn-core-pe 1.1.3-1 perl bindings for Subversion (aka. svn)
ii apache2-common 2.0.52-3 Next generation, scalable, extendable web se

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 25 10:43:59 2005

This is an archived mail posted to the Subversion Users mailing list.