#groupadd cvs #useradd cvsroot -g cvs #passwd cvsroot |
#more /etc/services | grep cvspserver |
cvspserver 2401/tcp #CVS client/server operations cvspserver 2401/udp #CVS client/server operations |
#vi /etc/xinet.d/cvspserver |
service cvspserver { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/bin/cvs server_args = -f --allow-root=/home/cvsroot pserver log_on_success += USERID log_on_failure += USERID } |
#cvs -d /home/cvsroot init |
#service xinetd restart |
#netstat -l | grep cvspserver |
tcp 0 0 *:cvspserver *:* LISTEN |
用户名:密码:系统用户 |
#htpasswd passwd username |
#SystemAuth=no |
#cvs -d “:pserver:[email protected]:/home/cvsroot” login |
#export CVSROOT=:pserver:[email protected]:/home/cvsroot |
Linux Linux Kernel Linux/kernel |
server = /home/cvsroot/cvs.run |
#!/bin/bash /usr/bin/cvs -f \ --allow-root=/home/cvsroot/src1 \ --allow-root=/home/cvsroot/src2 \ pserver |