分类: LINUX
2006-12-16 23:28:58
代码: |
#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:username@127.0.0.1:/home/cvsroot” login |
代码: |
#export CVSROOT=:pserver:username@127.0.0.1:/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 |