Restricting user access in Tortoise SVn

596 views
Skip to first unread message

Gaurav Negi

unread,
Jun 11, 2013, 8:38:04 PM6/11/13
to us...@tortoisesvn.tigris.org
Dear Friends,
I am new to SVN. So pardon my ignorance if my question looks stupid.

In our environment, we use tortoise SVN via https.
However SVN server is on Linux.

I want to restrict a particular user (say user1) to access only a particular task branch (task1). My goal is user1 shoul dbe able to see code and write code to only task1, but not any other branch.

I did following in confg/authz file

[repo:/branches]
user1 =

[branch:/tasks/task1]
user1 = rw

It is however not working for me.

Any idea? What can I do to fix the same?

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3057636

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Oto BREZINA

unread,
Jun 12, 2013, 2:43:22 AM6/12/13
to us...@tortoisesvn.tigris.org
On 2013-06-12 02:38, Gaurav Negi wrote:
> Dear Friends,
> I am new to SVN. So pardon my ignorance if my question looks stupid.
Every question looks little stupid if you know answer :)

This question is about server so you should adress it to svn list. This
is client mailing list.

>
> In our environment, we use tortoise SVN via https.
> However SVN server is on Linux.
>
> I want to restrict a particular user (say user1) to access only a particular task branch (task1). My goal is user1 shoul dbe able to see code and write code to only task1, but not any other branch.
Does Authentification (asking user name and password) on https works for
you?
If is doesn't you need set https server (Apache?). Send relevant config
snipset.

my is:


<Location /svn>
SSLRequireSSL
DAV svn
SVNParentPath <location>
<other SVN params>
AuthzSVNAccessFile /srv/svn/.svnaccess

<ldap authentification config elements>
</Location>


Then you can set Authorisation (access) for certain user and location.
Also relevant part of repo config is needed.

>
> I did following in confg/authz file
>
> [repo:/branches]
> user1 =
>
> [branch:/tasks/task1]
> user1 = rw
>
> It is however not working for me.
>
I use .svnaccess file, but I never try it to limit access.

Oto

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3057810

Ulrich Eckhardt

unread,
Jun 12, 2013, 8:58:08 AM6/12/13
to us...@tortoisesvn.tigris.org
Am 12.06.2013 02:38, schrieb Gaurav Negi:
> Dear Friends,
> I am new to SVN. So pardon my ignorance if my question looks stupid.
>
> In our environment, we use tortoise SVN via https.
> However SVN server is on Linux.
>
> I want to restrict a particular user (say user1) to access ...

TSVN is a client, your question is related to the server setup, as the
server checks and enforces permissions. You should ask this on the
Subversion mailinglist (us...@subversion.apache.org) instead.

Good luck!

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstra�e 75a, 22547 Hamburg, Deutschland
Gesch�ftsf�hrer: Hans Robert Dapprich, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschlie�lich s�mtlicher Anh�nge ist nur f�r den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empf�nger sein sollten. Die E-Mail ist in diesem Fall zu l�schen und darf weder gelesen, weitergeleitet, ver�ffentlicht oder anderweitig benutzt werden.
E-Mails k�nnen durch Dritte gelesen werden und Viren sowie nichtautorisierte �nderungen enthalten. Domino Laser GmbH ist f�r diese Folgen nicht verantwortlich.
**************************************************************************************

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3057811

Bob Archer

unread,
Jun 12, 2013, 10:19:24 AM6/12/13
to us...@tortoisesvn.tigris.org
> Dear Friends,
> I am new to SVN. So pardon my ignorance if my question looks stupid.
>
> In our environment, we use tortoise SVN via https.
> However SVN server is on Linux.
>
> I want to restrict a particular user (say user1) to access only a particular task
> branch (task1). My goal is user1 shoul dbe able to see code and write code to
> only task1, but not any other branch.
>
> I did following in confg/authz file
>
> [repo:/branches]
> user1 =
>
> [branch:/tasks/task1]
> user1 = rw
>
> It is however not working for me.

This doesn't look right...

repo:

and

branch:

indicate the repository name... So your second declaration should probably be:

[repo:/branches/tasks/task1]
user1 = rw

BOb

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3057819
Reply all
Reply to author
Forward
0 new messages