From: Ralf Corsepius
Hi,
Nope, it will not work. You should use tcpd instead:
2401 stream tcp nowait nobody /usr/sbin/tcpd /bin/echo hello
Then it should work. I think the problem lies in the fact that inetd doesn't use STDIN/OUT to write to programs in inetd.conf, but tcpd does, or at least can. But don't quote me on that..:)
I have tried it with and without tcp wrappers (what ever they are), and the error is just the same.
AFAIK, Phil is trying to get a cvs server working, so his inetd.conf example line might be broken, but that's not the point.
For cvs, inetd.conf should contain a line similar to this:
cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/usr/local/cvs pserver
(Given a cvs repository resides under /usr/local/cvs)
and /etc/services should contain
cvspserver 2401/tcp
I am trying to set up CVS, I have all but eliminated CVS it self as a problem on the cvs mailing list, the bulk of people think I have a inetd problem, thus the 'echo hello' test.
I don't know why this doesn't work for for Phil, but at least it does for me.
At least there is some who has it working under Suse, there are a couple of people using Suse with the same problem.
Phil, can you access your cvs repository with cvs, when being logged in as root and as normal user on your server and when trying to access it directly, ie. w/o accessing the pserver?
Yes, all 'seams' to be working, I just can't login using pserver.
Did you initialize your cvs repository, i.e. did you run cvs -d /usr/local/cvs init?
Yes, my repository contains CVSROOT and all the other required/generated files.
If the commands above work, then you probably are suffering from a general networking problem, completely unrelated to cvs.
This is my conclusion as well.
Possible causes might be the setup of dns/named, firewalling, routing, /etc/hosts* (cf. man 5 hosts_access, man 5 hosts_options) and similar.
All my other 'network services' work OK (mail, http, ftp, Interbase DB, etc.), it is just this one. I am just a bit confused what 'connection closed by foreign host' means, does it mean it is jsut not working, or is something else actually closing the connection. Cheers Phil -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/