C
caomo
Unregistered / Unconfirmed
GUEST, unregistred user!
我是不是无可救药了?
谁救我,我都想砸机器了。
首先讲一下环境,redhat 8.0,cvs-1.11.2-5
看看我的操作步骤:
1首先,我添加了组叫cvs,加了用户叫cvsroot,属于cvs组
mkdir了一个目录叫 /cvsexport 并修改权限为 cvs,cvsroot读写执行,其它不可写
目录属性如下:
drwxrwxr-x 3 cvsroot cvs 1024 3月 5 18:01 /
并用
cvs -d /cvsexport init
初始化了 /cvsexport目录的repositry
2.在/etc/services 中添加了下面的行
cvspserver 2041:tcp #for tcp listen
cvspserver 2041:udp #for udp listen
3.建立了 /etc/xinetd.d/cvspserver 文件,内容如下
service cvspserver{
disable=no
socket_type=stream
wait=no
user=cvsroot
server=/usr/bin/cvs
server_args=-f --allow-root=/cvsexport pserver
env=HOME=
log_on_success+=USERID
log_on_failure+=USERID
}
4。重启xinetd甚至计算机,
但是就是 netstat -na|grep 2041 不到任何东西
不管用何种用户(cvsroot,root)操作前面的每步,最后都不成功。
我排列组合了一整晚,z tmmd cd!!!!!
我ping localhost 2041 过,端口2041 它始终没有被占有过。
我试着执行这个,(这步是我自己试探的,可能不合理)
[root@linuxserver root]# /usr/bin/cvs -f --allow-root=/home/cvsroot pserver
两次回车后显示错误如下:
cvs [pserver aborted]: bad auth protocol start:
协议错误?明明tcp和udp大小写都没错。
附:
rpm -q cvs 的结果如下:
[cvsroot@linuxserver cvsroot]$ rpm -ql cvs
/usr/bin/cvsnfo/cvsclient.info-2.gz
/usr/bin/cvsbug/cvsclient.info-3.gz
/usr/bin/rcs2logcvsclient.info.gz
/usr/share/cvs/man1/cvs.1.gz
/usr/share/cvs/contribs.5.gz
/usr/share/cvs/contrib/READMEgz
/usr/share/cvs/contrib/clmerge
/usr/share/cvs/contrib/cln_hist
/usr/share/cvs/contrib/commit_prep
/usr/share/cvs/contrib/cvs2vendor
/usr/share/cvs/contrib/cvs_acls
/usr/share/cvs/contrib/cvscheck
/usr/share/cvs/contrib/debug_check_log
/usr/share/cvs/contrib/intro.doc
/usr/share/cvs/contrib/log
/usr/share/cvs/contrib/log_accum
/usr/share/cvs/contrib/mfpipe
/usr/share/cvs/contrib/pvcs2rcs
/usr/share/cvs/contrib/rcs-to-cvs
/usr/share/cvs/contrib/rcs2log
/usr/share/cvs/contrib/rcslock
/usr/share/cvs/contrib/sccs2rcs
/usr/share/doc/cvs-1.11.2
/usr/share/doc/cvs-1.11.2/AUTHORS
/usr/share/doc/cvs-1.11.2/BUGS
/usr/share/doc/cvs-1.11.2/COPYING
/usr/share/doc/cvs-1.11.2/COPYING.LIB
/usr/share/doc/cvs-1.11.2/DEVEL-CVS
/usr/share/doc/cvs-1.11.2/FAQ
/usr/share/doc/cvs-1.11.2/HACKING
/usr/share/doc/cvs-1.11.2/MINOR-BUGS
/usr/share/doc/cvs-1.11.2/NEWS
/usr/share/doc/cvs-1.11.2/PROJECTS
/usr/share/doc/cvs-1.11.2/README
/usr/share/doc/cvs-1.11.2/TODO
/usr/share/doc/cvs-1.11.2/cvs-paper.ps
/usr/share/doc/cvs-1.11.2/cvs.ps
/usr/share/doc/cvs-1.11.2/cvsclient.ps
/usr/share/info/cvs.info-1.gz
/usr/share/info/cvs.info-2.gz
/usr/share/info/cvs.info-3.gz
/usr/share/info/cvs.info-4.gz
/usr/share/info/cvs.info-5.gz
/usr/share/info/cvs.info-6.gz
/usr/share/info/cvs.info-7.gz
/usr/share/info/cvs.info-8.gz
/usr/share/info/cvs.info-9.gz
/usr/share/info/cvs.info.gz
/usr/share/info/cvsclient.info-1.gz
/usr/share/info/cvsclient.info-2.gz
/usr/share/info/cvsclient.info-3.gz
/usr/share/info/cvsclient.info.gz
/usr/share/man/man1/cvs.1.gz
/usr/share/man/man5/cvs.5.gz
/usr/share/man/man8/cvsbug.8.gz
谁救我,我都想砸机器了。
首先讲一下环境,redhat 8.0,cvs-1.11.2-5
看看我的操作步骤:
1首先,我添加了组叫cvs,加了用户叫cvsroot,属于cvs组
mkdir了一个目录叫 /cvsexport 并修改权限为 cvs,cvsroot读写执行,其它不可写
目录属性如下:
drwxrwxr-x 3 cvsroot cvs 1024 3月 5 18:01 /
并用
cvs -d /cvsexport init
初始化了 /cvsexport目录的repositry
2.在/etc/services 中添加了下面的行
cvspserver 2041:tcp #for tcp listen
cvspserver 2041:udp #for udp listen
3.建立了 /etc/xinetd.d/cvspserver 文件,内容如下
service cvspserver{
disable=no
socket_type=stream
wait=no
user=cvsroot
server=/usr/bin/cvs
server_args=-f --allow-root=/cvsexport pserver
env=HOME=
log_on_success+=USERID
log_on_failure+=USERID
}
4。重启xinetd甚至计算机,
但是就是 netstat -na|grep 2041 不到任何东西
不管用何种用户(cvsroot,root)操作前面的每步,最后都不成功。
我排列组合了一整晚,z tmmd cd!!!!!
我ping localhost 2041 过,端口2041 它始终没有被占有过。
我试着执行这个,(这步是我自己试探的,可能不合理)
[root@linuxserver root]# /usr/bin/cvs -f --allow-root=/home/cvsroot pserver
两次回车后显示错误如下:
cvs [pserver aborted]: bad auth protocol start:
协议错误?明明tcp和udp大小写都没错。
附:
rpm -q cvs 的结果如下:
[cvsroot@linuxserver cvsroot]$ rpm -ql cvs
/usr/bin/cvsnfo/cvsclient.info-2.gz
/usr/bin/cvsbug/cvsclient.info-3.gz
/usr/bin/rcs2logcvsclient.info.gz
/usr/share/cvs/man1/cvs.1.gz
/usr/share/cvs/contribs.5.gz
/usr/share/cvs/contrib/READMEgz
/usr/share/cvs/contrib/clmerge
/usr/share/cvs/contrib/cln_hist
/usr/share/cvs/contrib/commit_prep
/usr/share/cvs/contrib/cvs2vendor
/usr/share/cvs/contrib/cvs_acls
/usr/share/cvs/contrib/cvscheck
/usr/share/cvs/contrib/debug_check_log
/usr/share/cvs/contrib/intro.doc
/usr/share/cvs/contrib/log
/usr/share/cvs/contrib/log_accum
/usr/share/cvs/contrib/mfpipe
/usr/share/cvs/contrib/pvcs2rcs
/usr/share/cvs/contrib/rcs-to-cvs
/usr/share/cvs/contrib/rcs2log
/usr/share/cvs/contrib/rcslock
/usr/share/cvs/contrib/sccs2rcs
/usr/share/doc/cvs-1.11.2
/usr/share/doc/cvs-1.11.2/AUTHORS
/usr/share/doc/cvs-1.11.2/BUGS
/usr/share/doc/cvs-1.11.2/COPYING
/usr/share/doc/cvs-1.11.2/COPYING.LIB
/usr/share/doc/cvs-1.11.2/DEVEL-CVS
/usr/share/doc/cvs-1.11.2/FAQ
/usr/share/doc/cvs-1.11.2/HACKING
/usr/share/doc/cvs-1.11.2/MINOR-BUGS
/usr/share/doc/cvs-1.11.2/NEWS
/usr/share/doc/cvs-1.11.2/PROJECTS
/usr/share/doc/cvs-1.11.2/README
/usr/share/doc/cvs-1.11.2/TODO
/usr/share/doc/cvs-1.11.2/cvs-paper.ps
/usr/share/doc/cvs-1.11.2/cvs.ps
/usr/share/doc/cvs-1.11.2/cvsclient.ps
/usr/share/info/cvs.info-1.gz
/usr/share/info/cvs.info-2.gz
/usr/share/info/cvs.info-3.gz
/usr/share/info/cvs.info-4.gz
/usr/share/info/cvs.info-5.gz
/usr/share/info/cvs.info-6.gz
/usr/share/info/cvs.info-7.gz
/usr/share/info/cvs.info-8.gz
/usr/share/info/cvs.info-9.gz
/usr/share/info/cvs.info.gz
/usr/share/info/cvsclient.info-1.gz
/usr/share/info/cvsclient.info-2.gz
/usr/share/info/cvsclient.info-3.gz
/usr/share/info/cvsclient.info.gz
/usr/share/man/man1/cvs.1.gz
/usr/share/man/man5/cvs.5.gz
/usr/share/man/man8/cvsbug.8.gz