开发者

Granting access to specific directory in an SVN repository?

开发者 https://www.devze.com 2023-04-13 09:39 出处:网络
I want to grant a user access to only specific directory开发者_开发百科 (including its sub-directories) in my SVN repository and not the whole repository, is that possible?If you\'re using either apac

I want to grant a user access to only specific directory开发者_开发百科 (including its sub-directories) in my SVN repository and not the whole repository, is that possible?


If you're using either apache or svnserve you can set path based access control

With apache you set AuthzSVNAccessFile to point to a file that lists the access rules you wish to apply, your apache config ends up looking like:

<Location /repos>
  DAV svn
  SVNParentPath /mnt/storage/svn

  AuthzSVNAccessFile /etc/apache2/svn-accessfile

  Require valid-user  
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile /etc/apache2/users.conf
</Location>

Typically these end up looking something like:

[calc:/branches/calc/bug-142]
harry = rw
sally = r


Yes, if you're using the http access method. See the svn book: http://svnbook.red-bean.com/en/1.6/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.perdir


I use USVN but there are many other web interfaces that work with apache to provide SVN authentication protocols and repositories/directory permissions.

I know that USVN allows fine grained directory based permissions on the READ and WRITE and use MySQL as an account provider for authentication.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号