I teach programming in college and am using VisualSVN server to manage
my students' programs and also to teach them about version control.
I'm running VSVN on a Win2K8 server and using built-in Windows
authentication.

My approach is to set up a single repository for the semester and
create folders within it for each course, for each section, and for
each student, e.g.

-Repositories
--2009spring
---cs101
----0001
-----jonb
-----billc
-----sueg
----0004
-----gregw
-----bobj
---cs201
----0003
-----fredk
--2008fall

I'm using a powershell script to generate Windows user accounts for
all the students, and then create an SVN directory for each in the
appropriate semester-course-section repository, e.g.

# powershell command to create a new Windows user
([ADSI]"WinNT://myserver").add("user","jonb")
...
# svn command to create a folder for user jonb
svn mkdir https://myserver:8443/svn/2009spring/cs101/0001/jonb -m
"create folder for jonb"

My question: Is there any way for me to automate the granting of read/
write privileges for a Windows user to a specific directory within a
repository on a VisualSVN server, i.e. through some sort of command
line interface?

I know how to do this through GUI admin tool, but obviously that will
get tedious for the many student accounts I'll be creating.

Thanks!
Morgan

Reply via email to