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.