Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN - how to restrict user access to certain folders?

Tags:

I have an SVN repository wherein I need to give a particular user read/write access to several specific folders. Access to the folder and its children is OK, but accessing the folder's parent is not OK.

Also, it's actually 2 separate folders I need this user to access -- and these 2 folders are not part of the same tree node (but eventually they are if you go up enough levels).

I have access to SVN's /conf/authz, /conf/passwd, and /conf/svnserve.conf/ files.

like image 730
StackOverflowNewbie Avatar asked May 23 '11 00:05

StackOverflowNewbie


People also ask

How do I give someone access to a specific directory in svn?

Add the following text to your authz specifying a user by name for path-based authorization ( <reponame> can be the name of any repository). To give Harry readonly access to the secret folder then do the following. These will specifically deny a user from having any less restrictive inherited permissions.

How do I check permissions in svn?

Subversion has no concept of permissions or users or logins. That might sound strange to the vast majority of people who use Subversion since they need to use accounts and logins, but Subversion does not handle security directly.


1 Answers

Add the following text to your authz specifying a user by name for path-based authorization (<reponame> can be the name of any repository).

[<reponame>:/branches/calc/bug-142/secret] harry = 

To give Harry readonly access to the secret folder then do the following.

[<reponame>:/branches/calc/bug-142/secret] harry = r 

These will specifically deny a user from having any less restrictive inherited permissions.

like image 112
jpierson Avatar answered Sep 21 '22 20:09

jpierson