Fedora core 4 cvs (xinetd) problem
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Topics > Fedora core 4 cvs (xinetd) problem




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Fedora core 4 cvs (xinetd) problem  
Gang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-23-05 01:47 AM

Hi,
I just got core 4 installed, and trying to install a cvs server.
Everything looks fine (I can connect to port 2401, and response on telnet
looks normal), except, I have to start xinetd (/usr/sbin/xinetd) as root,
instead of "service xinetd start" (start in /etc/init.d/xinetd).

If I start /usr/sbin/xinetd directly, everything is OK.
If I start /etc/init.d/xinetd (same as service xinetd start), it always give
promission problems (example,
cvs checkout: failed to create lock directory for `/cvsroot/somedir'
(/cvsroot/CVSROOT/#cvs.lock): Permission denied.

And this happens even if I just put 1 line in /etc/init.d/xinetd file (call
/usr/sbin/xinetd directly).  My question is, is the binary version of xinetd
start itself as someone else when called from /etc/init.d/xinetd??  If so,
what is the user id it starts as?

Setup:
Fedora Core 4.
All latest updates to Nov 22, 2005.
I created user cvs and group cvs, and added myself, root to cvs group, so I
can login as me (not root) and change /cvsroot/CVSROOT/* files.

The following is /etc/xinetd.d/cvs file:
service cvspserver
{
disable                 = no
port                    = 2401
socket_type             = stream
protocol                = tcp
wait                    = no
user                    = root
passenv                 = PATH
server                  = /usr/bin/cvs
env                     = HOME=/cvsroot
server_args             = --allow-root=/cvsroot -f pserver
}

I have used cvs -d /cvsroot init to create the reposit.  Initially I also
got login problems (cvs login and it will complain permission denied trying
to access /cvsroot/CVSROOT/config file, when start from xinetd script.
Start /usr/sbin/xinetd and that problem will go away, and after I reboot I
was able to login even if cvs is started from xinetd script.

Anyone got any ideas?

Thanks!
Gang







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:15 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register