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

Re: subversion security, everyone can commit, limited to who can delete

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-14 23:50:08 CEST

On Oct 14, 2005, at 23:16, plabonte@gmail.com wrote:

> Although from what I can tell this is not possible with Subversion
> since part of the transaction is to create a tmp file and then
> delete it. If you disallow DELETE from apache you cannot do a commit.
>

You should be able to write a pre-commit hook that does what your
manager wants, something like this:

if (the user is not one of those allowed to delete) {
     get a list of things modified in the transaction
     if (any of them is a delete) {
         echo "You're not allowed to delete" 1>&2
         exit 1
     }
}
exit 0

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 14 23:51:42 2005

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.