码迷,mamicode.com
首页 > 其他好文 > 详细

CVS server configuration with cvsd scripts

时间:2014-06-30 12:28:42      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:style   http   get   strong   os   art   

At present, there is a package named cvsd, which is a wrapper for cvs server running in pserver mode, so the cvs server configuration is easier than before. During package installation, it will automatically prompt you to type in the repository path relative to the server root directory which is /var/lib/cvsd by default and can be changed in the configuration file /etc/cvsd/cvsd.conf. Further, there is no need to manually edit /etc/services anymore, because once the package cvs is installed, related information will be added to this file. Another change is cvsd is not started by inetd or xinetd at the present. It has become a standalone service with its server script in /etc/init.d.

The repository should still be manually initialized:

cvs -d /path/to/your/repository init

After initialization, new users should be added to the repository with their passwords and there is a new script to do this job: cvsd-passwd:

cvsd-passwd /path/to/your/repository +user_name

Then it will ask you for new password for this user.

To remove a user:

cvsd-passwd /path/to/your/repository -user_name

So again, there is no need to edit the passwd file in CVSROOT folder and no need to generate the password using a Perl script as before. One thing to be mentioned here is that the added user should also be a system user, i.e. it should not be a cvs virtual user, otherwise, any cvs file operations are not allowed. If we open the generated passwd file, we can also see that the created cvs user is mapped to the system user cvsd. This cvsd user is generated when installing the package cvsd and it belongs to cvsd group. For this reason, we should also change the gid & uid of the repository into cvsd in order to have file permissions in repository:

chown -R cvsd:cvsd /path/to/your/repository

If in the future new users are added to the the system and they are also cvs users, the cvsd root folder should be rebuild by using the command cvsd-buildroot:

cvsd-buildroot /path/to/cvsd/chroot/jail

Because cvsd uses chroot jail, this command will copy the new user information from /etc/passwd to /path/to/cvsd/chroot/jail/etc/passwd.

For the cvswrappers and cvsignore files, they should still be edited manually. After all these procedures, new projects can be imported into cvs for maintenance.

CVS server configuration with cvsd scripts,布布扣,bubuko.com

CVS server configuration with cvsd scripts

标签:style   http   get   strong   os   art   

原文地址:http://www.cnblogs.com/quantumman/p/3813886.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!