As I was a dumbass and managed to do some silly stuff with a repository of mine I happened to get a glance at my old perl hack that manages the subversion repository at <a href="http://www.update.uu.se">Update</a>.
The dumb thing I did has nothing to do with this script. This script is a perfect match for what is needed at Update, and it works very well.
You may view the code below. It is not too nice, but hey... it´s perl!
And, if you use it I would be glad to get some credit in your own script.
It works like this:
1. Multiple users have shell access to a linux server, running the subversion daemon in inetd.
2. The script is suid root.
3. The users use the script to create and remove repositories from the subversion server.
4. The server has ACL enabled on the filesystem.
5. The users ONLY has access to their own repositories when logged in on a shell. The daemon is the only program who is svn and in the group svn.
6. The repositories are stored in /update/svn/svn/
The good thing: Users may focus on doing some coding instead of reading the red book or disturbing the subversion administrator about repository management. That last reason is a mighty good one i have to say.
Use it or loose it!
Regards
/Jonas
| Attachment | Size |
|---|---|
| svn2update.pl.txt | 8.35 KB |

StumbleUpon
Facebook
Google
Yahoo