Learn Devops tools online from the blog. Devops Institute Ahmedabad.










yum install cvs 

Create a CVS user and group.
useradd cvs
passwd cvs
Create, setup and own cvsroot directory
mkdir /usr/local/cvsroot
cvs -d /usr/local/cvsroot init
chown cvs:cvs /usr/local/cvsroot
Set default CVSROOT
vi /etc/profile
Append following line:
export CVSROOT=/usr/local/cvsroot
And load it into the shell
./etc/profile
Add /etc/xinetd.d/cvspserver and make it look as follows:
vi /etc/xinetd.d/cvspserver
 
service cvspserver
{
disable = no
socket_type = stream
wait = no
user = cvs
group = cvs
log_type = FILE /var/log/cvspserver
protocol = tcp
env = '$HOME=/usr/local/cvspserver'
log_on_failure += USERID
port = 2401
server = /usr/bin/cvs
server_args = -f --allow-root=/usr/local/cvsroot pserver
}
Restart xinetd:
service xinetd restart
You can check /var/log/messages file for relevant error messages.
Add users to this group:
adduser <username> -g cvs
Change their password
passwd username


Thanks,
Vishal Vyas

No comments:

Post a Comment