Here’s a brief example of managing multiple CVS groups, so you can have different groups doing development out of the same CVS repository.

In this example…

   the cvs_coders group is used to hold ALL cvs users

   wx_coders is a subgroup – a few members are allowed access to the projects under this group

   m is the user that controls the rest of the cvs repository

———————

CVS GROUP PERMISSIONS

———————

   groupadd cvs_coders

   groupadd wx_coders

   pico /etc/group

      cvs_coders:x:513:m,corey

      wx_coders:x:514:m,corey

   cd /home/m/development

   chown -R m:m CVSROOT

   chgrp cvs_coders CVSROOT

   cd CVSROOT

   chgrp -R cvs_coders CVSROOT

   chgrp -R wx_coders wxHelloWorld

   chgrp -R wx_coders plucker

–> New cvs users need…

      a) a valid linux user (for ssh’ing into repository)

      b) this user must be added to the cvs_coders group

         -> edit /etc/group and add the user at the end of the cvs_coders line…

      c) also add the user to the appropriate existing subgroups

            m            Â  – for my personal stuff that isn’t shared

            wx_coders      – for Corey and my wxWindows project(s)

–> To add a new subgroup…

      a) “groupadd blah_coders”

      b) add all users to it in /etc/group

      c) create module(s) as “m”, then change group to target subgroup

            cd CVSROOT

            chgrp -R [newsubgroup] [newmodule]

———————

Leave a Reply