CVS memo...

Source: Internet
Author: User

The RedHat Firewall uses lokkit. If you need to use pserver, run lokkit and open port 2401 for pserver.
Modify/etc/xinetd. d/cvspserver and add
Service cvspserver
{
Socket_type = stream
Protocol = TCP
Wait = No
User = root
Passenv = path
Server =/usr/bin/CVS
Server_args =-f -- allow-root =/cvsroot -- allow-root =/mycvs pserver
}
Multiple -- allow-root =/path respectively specify the cvsroot that can be accessed by pserver.
Then call:
/Etc/init. d/xinetd restart
Start.
Use
CVS-D: pserver: kaikai @ localhost:/cvsroot Login
Check whether a local connection is available.
Due to the limited length of the xinetd server_args, You can redirect the server settings to another file in the cvspserver file, for example:
Server =/home/cvsroot/CVS. Run
Create the/home/cvsroot/CVS. Run file. The file must be executable in the following format:
#! /Bin/bash
/Usr/bin/CVS-f -- allow-root =/home/cvsroot/src1 -- allow-root =/home/cvsroot/src2 pserver
Create a passwd file in the cvsroot directory and add
Anonymous:
Kaikai: x
Two users are obtained. The first one is an anonymous user and the password is not verified. The second one has a password. The password shadow string X can be copied from/etc/passwd.
Execute the following commands in sequence
Pwunconv // disable shadow
Passwd kaikai // enter the new password
CAT/etc/passwd // show that the rows starting with kaikai are found in the column table, and the sections between one pair of colons after kaikai are copied.
Pwconv // enable shadow
Create a readers file in the cvsroot directory and add
Anonymous
Makes anonymous a read-only user.

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.