use root (super user):
# bzip2 -d cvs-1.12.9.tar.bz2
# tar xvf cvs-1.12.9.tar
# cd cvs-1.12.9
# ./configure
# make
# make install
# cd /etc/xinetd.d/
# vi cvspserver
file: /etc/xinetd.d/cvspserver
==================================
# default: on
service cvspserver
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/bin/cvs
server_args = -f --allow-root=/home/cvs pserver
log_on_failure += USERID
only_from = 172.18.10.0/24
}
==================================
# unset HOME
# /etc/init.d/xinetd restart
# groupadd -g 600 cvsuser
# useradd -g 600 -u 600 -d /home/cvs -s /bin/false cvs
# sudo -u cvs cvs -d /home/cvs init
use myhan (normal user):
$ cvs -d :pserver:[email protected]:/home/cvs login
$ cvs -d :pserver:[email protected]:/home/cvs co CVSROOT
$ cd CVSROOT/
$ vi config
file: ~/CVSROOT/config
==================================
# Set this to "no" if pserver shouldn't check system users/passwords
SystemAuth=no (去掉前面的#)
......
......
......
==================================
$ cvs -d :pserver:[email protected]:/home/cvs ci config
use root (super user):
# sudo -u cvs touch /home/cvs/CVSROOT/passwd
# sudo -u cvs touch /home/cvs/CVSROOT/readers
then:
build cvspwd to manager cvs users :)
http://www.pajamian.dhs.org/
install cvs2cl.pl to gen ChangeLog
http://www.red-bean.com/cvs2cl/
install cvsutils to help using cvs effectively :)
http://www.red-bean.com/cvsutils/
install cvsweb
http://www.freebsd.org/projects/cvsweb.html
本文地址:http://com.8s8s.com/it/it36267.htm