View previous topic :: View next topic |
Author |
Message |
Nidhoegger n00b
Joined: 05 May 2008 Posts: 5
|
Posted: Sun Oct 24, 2010 2:58 pm Post subject: SVN Set Passwords for every Repository |
|
|
Hi,
a friend and i have a root server. We both programm and wanted our own SVN Server. The SVN Server is running and is password protected. But my big problem: The server grants access to every user in the passwd file for every repo. But i want for example:
user 1 has access to repo1
user 2 has access to repo2
user 3 has acces to repo 1 and 2
how can i accomplish that? Here is my config for the SVN server:
Code: |
<VirtualHost *>
ServerName subversion.myserver.net
<Location />
DAV svn
SVNParentPath /var/subversion
SVNListParentPath On
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/passwd
Require valid-user
</Location>
</VirtualHost>
|
I am grateful for every help/document/tutorial on this section.
Nidhoegger |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Sun Oct 24, 2010 4:42 pm Post subject: |
|
|
Set up separate password files for repo1 and repo2. Put user3 in both of them and the other users only in their respective repositories. Then split your Location block so that it recognizes there are two areas, and assign each area its own AuthUserFile. For troubleshooting, you should also give them separate AuthName values so that a client can tell which block the server is using. |
|
Back to top |
|
|
|