[cvsnt] Re: CVS on Linux ...

Thomas Keller me at thomaskeller.biz
Tue Dec 6 14:15:35 GMT 2005

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 have setup CVSNT on linux, but I've run into a small problem.  When a user
> commits their files up, the owner and group are set to that username.  After
> that, no one else can update that file because of file permissions (and I
> don't want to set world writable on those files). It's been a while since I
> had to do a lot of unix stuff, so I don't remember how to solve this.  I
> have a 'cvs' group that I would like all of the added files to be a part of,
> what do I need to do to make new files use this group?

There are two ways to accomplish this task:

a) set the primary group of the particular user to cvs (syntax depends on distribution)
b) set the group sticky bit on all directories in your repository:

$ find /path/to/repo | xargs chgrp cvs
$ find /path/to/repo -type f | xargs chmod 660
$ find /path/to/repo -type d | xargs chmod 2770

this makes new files/directories having the same group like the parent directory.


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