Setting up a CVS server
Just now I had finished setting up CVS server on a CentOS
The steps which I followed is
Step 1
chose the location where I want to have the repo
I wanted to kept it as /usr/local/CVSREPO for this purpose I did
mkdir /usr/local/CVSREPO
Step 2
create system user and group named as “cvsuser”
Step 3
create the repository needed
cvs -d /usr/local/CVSREPO/StudentAdmin init
cvs -d /usr/local/CVSREPO/AccountAdmin init
Step 4
Change owner and group of repository and all files to “cvsuser”
chown cvsuser.cvsuser -R /usr/local/CVSREPO/
Step 5
check whether tcp service is there in /etc/services , U should find a entry simillar to
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
Step 6
Now we need to create an entry for the xinet.d . For this I
create a file name “cvpspserver” in /etx/xinet.d
with contents
service cvspserver
{
port = 2401
socket_type = stream
protocol = tcp
user = root
wait = no
type = UNLISTED
server = /usr/bin/cvs
server_args = -f --allow-root=/usr/local/CVSREPO/StudentAdmin --allow-root=/usr/local/CVSREPO/AccountAdmin pserver
disable = no
}
Step 7
For giving user permissions
create a file name “passwd” in
/usr/local/CVSREPO/StudentAdmin/CVSROOT and
/usr/local/CVSREPO/AccountAdmin/CVSROOT .
“passwd file format is
username:encryptedpassword:cvsuser
for making creating encrypted password I used a downloaded perl script
I created encrypted password using the downloaded script and copied the encrypted password to the newly created passwd
Step 8
restarted xinted service
Step 9
checked from the client using cvs login