How to build a CVS server in the FC7Linux Operating System

Source: Internet
Author: User
How to build a CVS server in the FC7Linux Operating System-Linux Enterprise Application-Linux server application information. The following is a detailed description. After Fedora7 is installed, the system installs the CVS software. You do not need to create the configuration file cvs under/etc/xinetd. d/. The default configuration file is as follows:

# Default: off

# Description: The CVS service can record the history of your source \

# Files. CVS stores all the versions of a file in a single \

# File in a clever way that only stores the differences \

# Between versions.

Service cvspserver

{

Disable = yes

Port = 2401

Socket_type = stream

Protocol = tcp

Wait = no

User = root

Passenv = PATH

Server =/usr/bin/cvs

Env = HOME =/var/cvs

Server_args =-f -- allow-root =/var/cvs pserver

# Bind = 127.0.0.1

}

Preliminary work:

The xinetd service is not installed by default. Therefore, install the xinetd service # yum install xinetd first.

Then change/etc/xinetd. d/cvs and change disable = yes to disable = no.

Restart the xinetd service, # service xinetd restart

Create user and password

Create a group named cvs and a user named cvsroot. users who want to access the CVS service will join the group:

[Root @ rocketcnvm ~] # Groupadd cvs

[Root @ rocketcnvm ~] # Useradd-g cvs-s/sbin/nologin cvsroot

[Root @ rocketcnvm ~] # Chown-R cvsroot/home/cvsroot

Next, initialize:

[Root @ rocketcnvm ~] # Cvs-d/var/cvs init

In this way, the CVSROOT directory is generated in the/var/cvs Directory, which stores some configuration files, such as config, and then sets:

[Root @ rocketcnvm ~] # Chown-R cvsroot: cvs/var/cvs

[Root @ rocketcnvm ~] # Chmod-R ug + rwx/var/cvs

[Root @ rocketcnvm ~] # Chmod 644/var/cvs/CVSROOT/config

To ensure the security of the CVS system, modify the/var/cvs/CVSROOT/config file and remove the comment # Before "# SystemAuth = no, change to "SystemAuth = no" and create accounts for developers one by one. Do not assign user directories to new accounts because they will be used as a virtual user account. The specific commands are as follows:

[Root @ rocketcnvm ~] # Useradd-g cvs-M rocketpro1

[Root @ rocketcnvm ~] # Password rocketpro1

The above command creates a user rocketpro1 without the Home Directory, then copies the system shadow file to CVSROOT, and rename it passwd:

[Root @ rocketcnvm ~] # Cp/etc/shadow/var/cvs/CVSROOT/passwd

[Root @ rocketcnvm ~] # Chmod 0644/var/cvs/CVSROOT/passwd

Then, modify the passwd file, delete all rows except the user rocketpro1 set to use CVS, remove all contents after the second colon in each row, and add the string cvsroot, the format is as follows:

Rocketpro1: $1 $ RO3GIeUt $ 6sbq5uqzusuk/R1Hua4k 4k/: cvsroot

Then, delete the user rocketpro1 that was just added to the system (if you want to make this user a user of the operating system, you can also not delete this user, if only this user is allowed to access CVS, the user can be deleted)

[Root @ rocketcnvm ~] # Userdel-f rocketpro1

Use CVS server

Now you can find a windows machine, install smartcvs, set it, and enter the user name and password.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.