1
Download source code
Slave
CVS
Official Website
Cvshome.org
Because
CVS
There have also been some security vulnerabilities in history, so we recommend that you regularly go to its official website to see if there is any latest version.
2
, Compilation and Installation
# Tar-xjpvf cvs-1.12.5.tar.bz2
# Cd cvs-1.12.5
#./Configure -- prefix =/usr/local/terry_yu/CVS
-- Disable-server-flow-control
# Make
# Make install
The above command will
CVS
Install
/Usr/local/terry_yu/CVS
In this directory.
Note: In addition to using the source code package for installation, you can also use
Rpm
Package to install.
3
, Set startup
CVS
Service
In
Linux
Upper
CVS
Services can be accessed through
Inetd
,
Xinetd
Or
Tcpwrapper
Etc.
Inetd
For security reasons
Xinetd
Replaced. Here we use
Xinetd
To start
CVS
Service.
In
/Etc/xinetd. d
The directory is
CVS
The Service creates a configuration file, such:
/Etc/xinetd. d/cvspserver
, Edit
/Etc/xinetd. d/cvspserver
, Enter the following content:
Service cvspserver
{
Disable = No
Socket_type = stream
Wait = No
User = root
ENV = home =
Server =/usr/bin/CVS
Server_args =-f -- allow-root =/home/cvsroot pserver
}
Note:
1) pserver
Indicates password-based access. This is the most common access method.
Gserver, kserver, ext
For higher security, you can use
SSH
To encrypt passwords and data streams, you can still choose
Pserver
.
2) -- allow-Root
Yes
Repository
Directory, you can create multiple
Repository
Then restart
Xinetd:
[Root @ Terry bin] #/etc/rc. d/init. d/xinetd restart
Restart
Xinetd
After the service,
CVS
Services are also starting to work.
4
In
CVS
Server Creation
Repository
First, create
CVS
And a group named
Cvsroot
Users to access
CVS
Service users
CVS
This group:
[Root @ Terry root] # groupadd CVS
[Root @ Terry root] # useradd-g cvs-S/sbin/nologin cvsroot
[Root @ Terry root] # chown-r cvsroot/CVS
Next, initialize:
[Root @ Terry root] # CVS-D/home/cvsroot init
In this way
/Home/cvsroot
Directory.
Cvsroot
Directory, which stores some configuration files, such
Config
And then set the permissions:
[Root @ Terry root] # chown-r cvsroot. CVS/home/cvsroot
[Root @ Terry root] # chmod-r ug + rwx/home/cvsroot
[Root @ Terry root] # chmod 644/home/cvsroot/config
To
CVS
System security, we need to modify
/Home/cvsroot/config
File
"# Systemauth = No"
Comment
#
Remove, that is, change
"Systemauth = No"
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 @ Terry root] # useradd-g cvs-M bogus
[Root @ Terry root] # passwd bogus
The above command creates
Home
Directory user
Bogus
Then
Shadow
File copy
Cvsroot,
And rename it
Passwd:
[Root @ Terry root] # cp/etc/shadow/home/cvsroot/passwd
[Root @ Terry root] # chmod 0644/home/cvsroot/passwd
Then modify
Passwd
File,
Bogus
Delete all rows, remove all contents after the second colon in each row, and add the string
Cvsroot,
The format is as follows:
Bogus: nd5 $ j8n9bw5dkv. npdxfdsh: cvsroot
Then, delete the user you just added in the system.
Bogus:
[Root @ Terry root] # userdel-F bogus
Okay, here,
CVS
The server has already been set, so that your
CVS
Users can only use
Passwd
To log on to your
CVS
Server now
.