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

Re: Subversion file-based authorization

From: <kmradke_at_rockwellcollins.com>
Date: Mon, 18 Feb 2008 12:36:28 -0600

Miguel Rentes <miguel.rentes_at_efacec.pt> wrote on 02/18/2008 12:08:21 PM:
> Hi everyone,
>
> Is there a way of ensuring that only a user (or a group of users)
> can change a specific file in a given directory? For example,
> suppose I have these files on a given directory:
>
> - abc.c
> - abc.h
> - vernum.h
>
> and I want user harry to change vernum.h but not abc.c or abc.h. All
> other users except harry can change abc.c or abc.h. Is there a way
> to change the authz file to put this kind of authorization?

The authz file only has directory granularity. However, if
you only need to restrict write access (not read), you could
write a hook script to disallow the write based upon the path
and username combo.

The svnperms.py script works as a hook script, and supports
regex for the paths, so it might work. (Just never tried
it for individual files.)

Kevin R.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-18 19:36:54 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.