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

Re: restricting sub-directory permissions

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Thu, 17 Dec 2009 04:16:32 +0300

Greetings, Gabriel Ricardo!

> I cannot figure out how to restrict permissions on a sub-directory.
> What I want is to have anonymous read/write access to everything
> except a sub-directory, where only two users have read/write and
> everyone else has no access (read or write). I've done a lot of
> reading of the manual and googling the users list but can't find
> anything that solves my problem.
> Much appreciated if someone can point out my mistake.

> I'm using Redhat 5.2, which comes with subversion 1.4.2 (r22196). and
> apache 2.2.3

> I have one repository at /usr/local/vn7/repos
> The relevant parts of my httpd.conf looks like this
> # SVN setup
> <Location /svn>
> DAV svn
> SVNPath /usr/local/vn7/repos
> # our access control policy
> AuthzSVNAccessFile /usr/local/vn7/etc/svn_auth_paths
> # try anonymous access first, resort to real
> # authentication if necessary.
> Satisfy Any
> Require valid-user

> # how to authenticate a user
> AuthType Basic
> AuthName "Subversion repository"
> AuthUserFile /usr/local/vn7/etc/svn_auth_users

> </Location>

> My AuthUserFile looks like this:
> [/]
> * = rw

> [/Delta/trunk/qsrc/strategies]
> mchen = rw
> gricardo = rw
> * =

Try
[/Delta/trunk/qsrc/strategies]
* =
mchen = rw
gricardo = rw

or make a group and tell this directory to
[/Delta/trunk/qsrc/strategies]
~@group =
@group = rw

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 17.12.2009, <4:14>
Sorry for my terrible english...
Received on 2009-12-17 02:20:41 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.