URN Logo
UNIX Resources » Linux » China Linux Forum » 网络管理技术 » 25 » a problem when using cvs pserver!!!!!
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  TI专版
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
a problem when using cvs pserver!!!!!
a problem when using cvs pserver!!!!! - carrot [2003-01-14 10:51 | 1,730 byte(s)]
 
Re: a problem when using cvs pserver!!!!! - lesenlo [2003-01-14 15:22 | 38 byte(s)]
 
Re: a problem when using cvs pserver!!!!! - carrot [2003-01-14 16:54 | 226 byte(s)]
 
Re: a problem when using cvs pserver!!!!! - lesenlo [2003-01-15 05:41 | 1,460 byte(s)]
 
Subject: a problem when using cvs pserver!!!!!
Author: carrot    Posted: 2003-01-14 10:51    Length: 1,730 byte(s)
[Original] [Print] [Top]
Hi, all, there is a problem when I use CVS.
After setup the cvs server, I login, and fail:
cvs -d :pserver:cvs1@172.19.30.131:/home/cvs/repository login
Logging in to :pserver:cvs1@172.19.30.131:2401/home/cvs/repository
CVS password:
cvs login: authorization failed: server 172.19.30.131 rejected access to
/home/cvs/repository for user cvs1

172.19.30.131 is my cvs server, cvs1 is a system user.

I setup the cvs server as follows:
1. create a user cvs.
2. login as cvs and create a dir repository: mkdir /home/cvs/repository.
3. modify access mode: chmod 770 /home/cvs/repository; chmod g+s
/home/cvs/repository; chmod g+rx /home/cvs
4. As root, add system user cvs1 to group cvs: usermod -G cvs cvs1
5. modify xinetd to start cvspserver, add /etc/xinetd.d/cvspserver as:
#default: off
#description: An cvs server.
service cvspserver
{
disable = no
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvs/repository pserver
log_on_failure += USERID
log_on_success += USERID
}

6. restart xinetd as root:service xinetd restart.


The server is RedHat 7.1, but when I setup another cvs server on RedHat 7.3
with the same configuration, It succeeds, why?
----
世上本没有路,走的人多了,便有了路。
[Original] [Print] [Top]
Subject: Re: a problem when using cvs pserver!!!!!
Author: lesenlo    Posted: 2003-01-14 15:22    Length: 38 byte(s)
[Original] [Print] [Top]
试试把user=root改成user=cvs1
----
我彷徨因为我有很多困惑
所以我每天都在努力
[Original] [Print] [Top]
Subject: Re: a problem when using cvs pserver!!!!!
Author: carrot    Posted: 2003-01-14 16:54    Length: 226 byte(s)
[Original] [Print] [Top]
I tried and still failed.
I use "man xinetd.conf" and see option "user" determines the uid for the server process, and seems it's not related to this problem.

Anyone can help?
----
世上本没有路,走的人多了,便有了路。
[Original] [Print] [Top]
Subject: Re: a problem when using cvs pserver!!!!!
Author: lesenlo    Posted: 2003-01-15 05:41    Length: 1,460 byte(s)
[Original] [Print] [Top]
呵呵,是这样,印象中在以前我和我的同事们也曾经遇到过和你现在一样的问题,而且好象只有7.1会有这问题,在当时我们是按照下面的步骤解决的(呵呵,只是个大概的步骤吧),你愿意的话可以尝试一下看看是否会有所帮助。
据我所知,一般而言,Don't want to use CVS as root,Because Something to do with cvs server running as root,所以,我们尝试操作如下:
cvs -d /usr/local/cvsroot init
/usr/sbin/useradd cvs
cd /usr/local/cvsroot
chown -R cvs.cvs .
chmod ug+rwx . CVSROOT
vi /etc/xinetd.d/cvs , 增加下面这几句(偷懒就只写了些关键的):
service cvs
{
socket_type = stream
protocol = tcp
user = cvs
group = cvs
server = /usr/bin/cvs
server_args = --allow-root=/usr/local/cvsroot pserver
type = UNLISTED
}

然后启动:
/etc/init.d/xinetd restart
接着:
vi /usr/local/cvsroot/CVSROOT/passwd,添加行设定个用户,如lesenlo:[password],(password is copied from /etc/shadow)
最后:
/usr/bin/gpasswd -a cvs cvs
/usr/bin/gpasswd -a lesenlo cvs
呵呵,再开个shell,测试一把,如:
cvs -d : pserver:lesenlo@hello.helloworld.com:/usr/local/cvsroot login
给系统个正确密码,就ok可以正常使用了。
希望能对你有所帮助,不过我也很久没玩7.1了,对和你问题不相符合的地方,你自己多留心喽,呵呵
----
我彷徨因为我有很多困惑
所以我每天都在努力
[Original] [Print] [Top]
« Previous thread
一个建议!!请参与!
网络管理技术
25
Next thread »
急问:tc的用法?
     

Copyright © 2007~2009 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
webmaster: webmaster@unixresources.net
This page created on 2009-09-07 16:06:14, cost 0.0193800926208 ms.