Fedora Core1 Configuring CVS

xiaoxiao2021-03-06  51

Install CVS

1 Make sure the system is installed with CVS:

[root @ mail xinetd.d] # rpm -qa | grep cvs

CVS-1.11.1p1-3

If the command output is similar to the above output, the system has been installed with CVS, otherwise the RPM package of the CVS is required from the installation disc.

2: Established a CVS user group

GroupAdd CVS

3. Establish a CVSRoot user and the directory of the CVS group

UserAdd -g cvs -g cvs -d / cvsroot cvsroot

4: Add a password for cvsroot users

Passwd cvsroot

5: Change / cvsroot directory properties

CHMOD 775 / CVSROOT

6: Initialize the CVS Source Library, this operation generates directory / cvsroot / cvsroot, under the initialization file

CVS -D / CVSROOT INIT

7: Create a user and password that can log in to the CVS service, you need to create a file passwd

Vi / cvsroot / cvsroot / passwd

The document content is as follows:

YYM: XXXXX: CVSROOT

8.xxxxxx is a password, generated by the following file: vi /Home/cvsroot/passwdgen.pl file content:

#! / usr / bin / perl

SRAND (Time ());

MY $ RANDLETTER = "(INT (RAND (26)) (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";

9. If you need a password to: Some, type: passwdgen.pl "some" Enter the encrypted password to return to the xxxxxx in the Passwd file

10. Join CVS service

The CVS service is evoiled by my intend, so it is necessary to change the service provided by inetd, add the service that needs to be started in the xinetd.d directory:

CD /etc/xinetd.d

VI CVSPSERVER

document content:

Service CVSPServer

{

Disable = no

Flags = Reuse

Socket_type = stream

Wait = NO

User = root

Server = / usr / bin / cvs

Server_Args = -f - allowow-root = / home / cvsroot pserver

LOG_ON_FAILURE = UserID

}

12. Restart inetd or xinetd:

/etc/rc.d/init.d/xinetd Restart

13. Check if the CVSPSERVER service is already started

NetStat -l | grep cvspserver

The results are as follows:

TCP 0 0 *: CVSPSERVER *: * LISTEN

All the above results passed, but executed on my client (redhat9)

CVS -D: PServer: steven@192.168.211.72: / home / cvsroot login

After entering the password, return Connection Confuse Information

转载请注明原文地址:https://www.9cbs.com/read-115691.html

New Post(0)