Recipe 18.10. Sharing a Single Repository Between Several Groups

 < Day Day Up > 

18.10.1 Problem

You have several different project groups that each need their own CVS repository, and you want to put them inside a single master CVS repository to make it easier to do backups and administrative chores. You need to configure file permissions to keep users from wandering into the wrong repositories.

18.10.2 Solution

Follow Recipe Recipe 18.9, and create a new subdirectory for each individual repository. Adjust owner and group permissions on the individual repositories to control access:

# cd /3dgame # cvs -d /cvsroot  import  3dgame  best_game_ever  version_1 # chown gamers:gamegroup /cvsroot/3dgame

18.10.3 Discussion

You can create a separate repository for each project, or put everything under a single CVS root. Backups are easier with a single CVS root, but having separate multiple repositories makes it a little easier to manage permissions and user access.

18.10.4 See Also

  • Chapters 2 and 6 of Essential CVS

  • Recipe 18.19

  • CVS home page (https://www.cvshome.org)

     < Day Day Up > 


    Linux Cookbook
    Linux Cookbook
    ISBN: 0596006403
    EAN: 2147483647
    Year: 2004
    Pages: 434

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net