Visit Jeremy's Blog.
Go Back > Blogs > Febi881
User Name


Rate this Entry

Adding A new Project Into CVS Repository

Posted 06-26-2009 at 01:11 AM by Febi881
Updated 09-16-2009 at 02:55 AM by Febi881

Adding A new Project Into CVS Repository

Following steps has to do for adding a new project to the cvs repository.


Add a username(should be same as the project name) and create a password for the corresponding user name. Then edit the following file # vi /etc/passwd and find the corresponding username. Edit the particular line and change the group number to the group number of cvs.


Edit the file 'group' in the /etc dirctory and add the username(project name) to the group cvs


Now go to the cvs root folder (in my case it is /cvs) and create a directory. the directories name should same as the username. Change the owner and group to cvs.

# chown cvs:cvs /cvs/projectname(username)


We need to init the cvs in the /cvs/projectname(username) directory. This is done by the following command.

# cvs -d /cvs/projectname inti

This command will create a directory name CVSROOT in /cvs/projectname folder. Change the ownership and group to cvs.

# chown -R cvs:cvs /cvs/projectname/CVSROOT

Now you need to set the acces level permission. ie, set it to 775 directory permission . The following command will do the same.

# chmod -R 775 /cvs/projectname/CVSROOT


Then, you want to make sure that all the files have the correct group bit set:

chown -R :cvs /usr/local/cvsrepo/project
And, you want to make sure that any new directories (and files) added use the cvs group, rather than the group group:

chmod -R g+ws /usr/local/cvsrepo/project
Posted in Uncategorized
Views 1956 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 11:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration