You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by chetanchatwani <ch...@savvion.com> on 2007/05/17 07:09:12 UTC

Restricting svn commands usage for users

Hi All,

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 ?

Regards,
Chetan

-- 
View this message in context: http://www.nabble.com/Restricting-svn-commands-usage-for-users-tf3770275.html#a10659532
Sent from the Subversion Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Restricting svn commands usage for users

Posted by chetan <ch...@savvion.com>.
First option I cann't use since then user will not be allowed for 
checkin in branch.
Since my aim is that only administrator can create tag aor branch not  
other user.
Is ther any good book for hooks it's really tuff for me to understand or 
some online
tutorial ?

Regards,
Chetan

Talden wrote:

> '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.
>
> -- 
> Talden
>
> On 5/23/07, chetan <ch...@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 <ch...@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

Re: Restricting svn commands usage for users

Posted by Talden <ta...@gmail.com>.
'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.

--
Talden

On 5/23/07, chetan <ch...@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 <ch...@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

Re: Restricting svn commands usage for users

Posted by chetan <ch...@savvion.com>.
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 <ch...@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
>

Re: Restricting svn commands usage for users

Posted by Karl Fogel <kf...@producingoss.com>.
chetanchatwani <ch...@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

-- 
Subversion support & consulting  <>  http://producingoss.com/consulting.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org