# check installation and version
rpm -qa | grep cvs
cvs-1.11.1p1-7
# if you hadn't installed cvs or the right version. just install it, or upgrade it.
rpm -ivm cvs-1.11.1p1-7
rpm -Uvm cvs-1.11.1p1-7
rpm -Fvm cvs-1.11.1p1-7
# create user and group for cvsroot user
groupadd -g 502 cvsroot
useradd -u 502 cvsroot -g cvsroot -G cvsroot
# add cvspserver to xinetd.d
cat << EOF > /etc/xinetd.d/cvspserver
service cvspserver
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
env = HOME=
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvsroot --allow-root=/home/cvsroot0/1 pserver
log_on_failure += USERID
}
setup password
# setup password
touch /home/cvsroot/CVSROOT/passwd
# cvsuseradd.sh - the script for cvsuseradd
perl ./cvsuseradd.pl $1 >> passwd
# cvsuseradd.sh - the script for cvsuseradd
cvsuseradd.sh
perl ./cvsuseradd.pl $1 >> passwd
cvsuseradd.pl
#!/usr/bin/perl
$username = $ARGV[0];
print "\n" . "$username:" . crypt("$username", "SB") . ":cvsroot";
No comments:
Post a Comment