[cvsnt] How to permit/not permit commit to an assigned branch?

Glen Starrett grstarrett at cox.net
Mon Dec 8 18:35:24 GMT 2003


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


> 	I am a newbie in CVS, can anyone tell me How to 
> permit/not permit commit to an assigned branch?
> For example:
> 
> 'HEAD -> 1.1 -> 1.2 -> 1.3 -> 1.4
> '                |
> '               V2  -> 1.2.2.1 -> 1.2.2.2
> 
> How to prevent some of the users to commit to V2 branch?

You can use CVSNT's chacl and lsacl commands to manage access control on
branches.  Do something like this in your sandbox:

cvs chacl default:rwc
cvs chacl -r V2 baduser1:r
cvs chacl -r V2 baduser2:r

Line 1 sets default permissions for the entire source tree (important to set
the default or your results won't be as expected when there isn't a specific
case).  Lines 2 and 3 allow those users only read access, but read on.

I've only just started using acl's myself with cvsnt, so I recommend you
test it.  Specifically, I use it in the other order (deny then allow), which
I believe is the more common (and more therefore tested) approach, but I
don't think there should be any problem with the way I outlined above.

cvs chacl default:r
cvs chacl -r V2 gooduser1:rwc

You can set per directory permissions with ACL by passing a directory in
addition.

Regards,

Glen Starrett





More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook