next up previous index
Next: User Environment Variables Up: Setting up a CVS Previous: Setting up a CVS   Index

Click for printer friendely version of this HowTo

Creating and Initializing the Repository

This section describes a creation and initialization stage that is only required the very first time you try to get CVS working on your computer.4.2 Once this is done, you can add new projects or directories to the repository without having to go through this process.

You first need to create a directory on your computer that can be used as the repository. Usually this is set to /home/cvsroot/ but you can put it anywhere you want. You will also need to give read and write access to any users or groups that will be using the repository. For example, you may wish to use the following commands:

shell> su
shell# export CVSROOT=/home/cvsroot
shell# groupadd cvs
shell# useradd -g cvs -d $CVSROOT cvs
shell# mkdir $CVSROOT
shell# chgrp -R cvs $CVSROOT
shell# chmod o-rwx $CVSROOT
shell# chmod u+rwx $CVSROOT
shell# chmod g+rwxs $CVSROOT
shell# cvs init

Now add add users to the cvs group.

bash# usermod -G cvs some_username
where some_uesrname is a user you want to have read and write access to the repository.



Frank Starmer 2004-05-19
>