I have setup a CVS pserver which works nicely for me, the user who first created the modules (subdirectories under /cvs).
The problem is when other users try to check out from that module (subdirectory under /cvs).
/cvs and /cvs/CVSROOT all belong to special 'user:group' that I created: 'cvs:cvs'.
drwxrwxr-x 3 cvs cvs 4096 2007-12-30 13:25 CVSROOT
-rw-rw-r-- 1 cvs cvs 0 2007-12-29 10:34 locks
drwxrwxr-x 8 xpnewbie xpnewbie 4096 2007-12-30 06:53 mymodule
As you can see, when I first created 'mymodule' (using import/commit), it was created with the ownership of xpnewbie:xpnewbie, not xpnewbie:cvs as I had hoped.
My question is: What is the right approach to tackle this problem?
Of course I could perform a 'chown -R xpnewbie:cvs mymodule' but then:
- I don't know what would happen to a newly added file to the module (it would most certainly not receive 'xpnewbie:cvs' ownership.
- I will have to repeat this (manual) procedure every time I create a new module.
Is there a way to tell CVS/pserver to automatically assign the group 'cvs' to any newly checked in module/file?