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.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
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 © 2018 UNIX Resources Network, All Rights Reserved.    About URN | Privacy & Legal | Help | Contact us