Adding A new Project Into CVS Repository
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
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
Total Comments 0