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

Re: How to set permission levels in subversion

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Wed, 4 Jun 2008 18:56:27 -0700

On Wed, Jun 4, 2008 at 1:52 PM, Mick Ken <micks80_at_gmail.com> wrote:

> Hi Friends,
> I have a subversion repository and i am controlling the
> access/authorization rules using Apache. Right now,
> I have a "svn-acl" file that has projects with read-write permissions like:
> [ProjectName:/]
> @team_project1 = rw
> But the problem is, everybody is able to "delete" any folders/files
> etc from the repository using the Tortoise SVN repo-browser. So, I
> would like to know how to control the permissions so that users cannot
> delete anything on the repository and only the Administrator can
> delete folders/ files.

The access control has only two levels: read and write. In order to go into
finer grained access control, you will have to write a pre-commit hook.
There is an example script in the source distribution called svnperms.py (in
tools/hook-scripts directory). You might be able to use that in the
pre-commit hook

> I would also like to know how the permission levels should be set like
> what's the best way ...
> I would really appreciate your input.
> Thanks
> Mick
Received on 2008-06-05 03:57:04 CEST

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.