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

Re: File based permissions?

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-12-13 20:37:15 CET

On Dec 13, 2007 1:11 PM, Gonzalez Diaz, Xoan <G2485@caixagalicia.es> wrote:
> I am setting up a repository of java projects. So my layout is the
> following:
>
>
>
> DEVELOPMENT
>
> APPLICATION
>
> Trunk
>
>
> src/main/java/es/company/application/component1
>
>
> es/company/application/component2
>
> ...
>
>
> src/test/java/es/company/application/component1
>
>
> es/company/application/component2
>
> ...
>
> doc/es/company/application/component1
>
> es/company/application/component2
>
> .classpath
>
> .project
>
> Branches
>
> Tags
>
>
>
>
>
> I want to give read access to all programmers in all directories. And too,
> read and write access for a programmer modifying a given component in all
> directories needed, that is:
>
> Src/main/java/es/company/application/component1
>
> Src/test/java/es/company/application/component1
>
> Doc/es/company/application/component1
>
> .classpath
>
> .project
>
>
>
>
>
>
>
> So I define t in access file:
>
> [groups]
>
> es.company.application.component1 = programmer1
>
>
>
> [/]
>
> * = r
>
>
>
> [Repo:/DEVELOPMENT/APPLICATION/trunk/src/main/java/es/company/application/component1]
>
> es.company.application.component1 = rw
>
>
>
> [Repo:/DEVELOPMENT/APPLICATION/trunk/src/test/java/es/company/application/component1]
>
> es.company.application.component1 = rw
>
>
>
> [Repo:/DEVELOPMENT/APPLICATION/trunk/doc/es/company/application/component1]
>
> es.company.application.component1 = rw
>
>
>
> [Repo:/DEVELOPMENT/APPLICATION/trunk/.project]
>
> es.company.application.component1 = rw
>
>
>
> [Repo:/DEVELOPMENT/APPLICATION/trunk/.classpath]
>
> es.company.application.component1 = rw
>
>
> I want a programmer to be able to modify .project and .classpath but not
> the other components in trunk different than component1.

>
> When I try to modify .project or .classpath a "403 Forbidden" error is
> thrown. Isn't possible to define permission over a single file?

No, it's not (I'm pretty sure the fine manual documents access control
as per-*directory*).

> Any ideas to achieve this?

You could use svnperms.py to provide more fine-grained control on
commit actions. Or, if .project and .classpath are local configuration
information that changes per-developer, tell Subversion to ignore them
outright after removing them from the repository.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 13 20:37:44 2007

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.