[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-17 21:18:19 CEST

On Oct 17, 2005, at 21:09, 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?

What's the server's OS -- Windows or Unix?

On Unix you could use the powerful if arcane shell scripting
language. On Windows you have batch scripts which are much less
helpful. Unix systems generally have any number of other scripting
languages available, such as Perl, Python, PHP, Ruby... I think all
these can be installed on Windows servers too, but I'm not sure how
difficult that is to do.

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:19: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.