LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > Febi881
User Name
Password

Notices

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.

Step-i

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.

Step-ii

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


Step-iii

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)

Step-iv

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

Step-V

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 1083 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement

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