Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SVN Set Passwords for every Repository
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Nidhoegger
n00b
n00b


Joined: 05 May 2008
Posts: 5

PostPosted: Sun Oct 24, 2010 2:58 pm    Post subject: SVN Set Passwords for every Repository Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Sun Oct 24, 2010 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum