[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Restricting svn commands usage for users

From: Talden <talden_at_gmail.com>
Date: 2007-05-23 12:23:49 CEST

'tag' and 'branch' are not commands in Subversion. Instead they are
just different paths in the repository folder structure. You can use
the permissions mechanism in authz to only allow certain users (or
groups of users) to have write ability in the branches and tags areas.
 If you want to allow writing to a branch but not creation of a branch
then you definitely will need to use a hook script that checks the
type of operation (such as a copy to the tags area) and checks a list
of allowed users.

You will largely need to read example hooks and learn the scripting
for your platform.

On 5/23/07, chetan <chetan@savvion.com> wrote:
>  Hi Karl,
>  Thanks for info. But still I am not getting clear idea on how to implement
> hook since I am new to
>  this. Basically I want to disable few commands such as tag,branch for all
> users only specific user
>  can do it.
>  Any help would be great.
>  Regards,
>  Chetan
>  Karl Fogel wrote:
>  chetanchatwani <chetan@savvion.com> writes:
>  Is there way to restrict svn commands usage for users, means certain users
> cann't create tag/branch in the
> repository they can just checkin/checkout in repository ?
>  Look at customizing the pre-commit hook. See
> http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks
> for more on this.
> Best,
> -Karl
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 23 12:24:21 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.