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

Help Implementing svnperms.py

From: Rob Wilkerson <r.d.wilkerson_at_gmail.com>
Date: 2006-09-21 18:26:00 CEST

I'm trying to get svnperms configured and working properly, but I
don't seem to be having much luck. I feel like it's a problem of me
just not knowing what I'm doing, but I've had a hard time finding a
good end-to-end explanation of every component. I'm hoping someone
here can help me identify and correct the error of my ways.

repos/conf/svnperms.conf:
[groups]
admin = user1
sedev = user1 user2 user3 user4
psdev = user5 user6 user7 user8

#
# the name of the repository is "siteexecutive"
#
[siteexecutive]
# Severely restrict access to certain locations
.* = @admin(add,remove,update)

trunk/.* = @admin(add,remove,update)
trunk/\.admin/assigned_class_ids.txt = *(update)

branches/.* = @admin(add,remove,update)

pre-commit:
REPOS="$1"
TXN="$2"

# Make sure that the log message contains some text.
SVNLOOK=/usr/bin/svnlook
$SVNLOOK log -t "$TXN" "$REPOS" | \
   grep "[a-zA-Z0-9]" > /dev/null || SVNLOOKOK=0

if [ $SVNLOOKOK = 0 ]; then
   echo "No commit message was supplied." >&2
   exit 1
fi

/usr/bin/python /opt/projects/bin/svn/svnperms.py \
 -r $REPOS \
 -t $TXN

exit 0

For some reason, user3 is able to commit changes to a branches
subdirectory. What am I missing in my call or my config?

TIA.

-- 
Rob Wilkerson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 21 18:26:57 2006

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.