[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: <plabonte_at_gmail.com>
Date: 2005-10-17 21:09:09 CEST
Ryan Schmidt wrote:

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


I am not a programmer so writting this is not something I could do easily... can you point in the right direction for learning how to do this?
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.org Received on Mon Oct 17 21:10:58 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.