How to set up a CVS server in Redhat9.0 environment

Source: Internet
Author: User
Keywords Server erection environment where a
Tags access access control aliyun client control control tool customers development

CVS is a well-known http://www.aliyun.com/zixun/aggregation/9591.html "> version control tool, which is useful for both individual programmers and a development team." CVS is very powerful, as a whole it is a C/s structure of software, the user should first set up a CVS server, on the CVS server to import project instances, the establishment of CVS Project access control. Customers access the CVS server through the client, customers can get the latest code copy of the project, submit their own modified code, and customers can from the Internet, LAN, or even native to access the CVS server. Below, small series to tell you how to set up a CVS server in the Redhat9.0 environment.

1. Set up CVS user group

Groupadd CVS

2, establish the CVS group Cvsroot user and belong to the directory

Useradd-g cvs-g Cvs-d/home/cvsroot Cvsroot

3. Add password for cvsroot user

passwd Cvsroot

4, change the/home/cvsroot directory properties

chmod 775/home/cvsroot

5, initialize the CVS Source Library, this operation generates the directory/home/cvsroot/cvsroot, under some initialization files

Cvs-d/home/cvsroot Init

6, the creation can log on the CVS service user and the password, needs to create the file passwd

vi/home/cvsroot/cvsroot/passwd

The contents of the document are as follows:

Steven:xxxxx:cvsroot

7, xxxxxx for the password, generated by the following file: vi/home/cvsroot/passwdgen.pl file content:

#!/usr/bin/perl

Srand (Time ());

My $randletter = "(int (rand) + (int (rand (1) +. 5)% 2? 65:97)) ";

My $salt = sprintf ("%c%c", eval $randletter, eval $randletter);

my $plaintext = shift; My $crypttext = Crypt ($plaintext, $salt);

print "${crypttext}\n";

8, if need password is: Some, then typed: passwdgen.pl "Some" Enter can get encrypted password, replace passwd file xxxxxx.

9. Join CVS Service

Vi/etc/services

Cvspserver 2401/tcp #pserver CVS Service

Cvspserver 2401/udp #pserver CVS Service

Related Article

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.