problems with cygrunsrv and inetd
Ruud Huynen
ruud.huynen@hispeed.ch
Sun Jan 11 19:40:00 GMT 2004
Hello
Thanks for the reply.
I uninstalled inetutils. removed /etc/inetd.conf. Installed inetutils and
run iu-config.
Installed the service and started it. Two inetd process are running (which
is correct).
But netstat -an show no listening ports.
Any ideas ?
Regards
Ruud
--------------------------------------------------------------
Ruud@pc11 ~
$ rm /etc/inetd.conf
Ruud@pc11 ~
$ iu-config
Overwrite existing /etc/ftpusers file? (yes/no) yes
Creating default /etc/ftpusers file
Overwrite existing /etc/ftpwelcome file? (yes/no) yes
Creating default /etc/ftpwelcome file
Overwrite existing /etc/inetd.conf file? (yes/no) yes
Creating default /etc/inetd.conf file
Overwrite existing /etc/motd file? (yes/no) yes
Creating default /etc/motd file
Overwrite existing /etc/shells file? (yes/no) yes
Creating default /etc/shells file
Configuration finished. Have fun!
Ruud@pc11 ~
$ inetd --install-as-service
bash: inetd: command not found
Ruud@pc11 ~
$ /usr/sbin/inetd --install-as-service
Ruud@pc11 ~
$ net start inetd
The CYGWIN inetd service is starting.
The CYGWIN inetd service was started successfully.
Ruud@pc11 ~
$ netstat -an
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1034 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1038 0.0.0.0:0 LISTENING
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5800 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5900 0.0.0.0:0 LISTENING
TCP 0.0.0.0:21234 0.0.0.0:0 LISTENING
TCP 0.0.0.0:44334 0.0.0.0:0 LISTENING
TCP 10.1.1.11:139 0.0.0.0:0 LISTENING
TCP 10.1.1.11:14288 0.0.0.0:0 LISTENING
TCP 80.218.231.109:1038 64.12.30.140:5190 ESTABLISHED
TCP 80.218.231.109:1185 152.163.208.121:80 TIME_WAIT
TCP 80.218.231.109:16668 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1028 0.0.0.0:0 LISTENING
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:1026 *:*
UDP 0.0.0.0:1031 *:*
UDP 0.0.0.0:1032 *:*
UDP 0.0.0.0:44334 *:*
UDP 10.1.1.11:137 *:*
UDP 10.1.1.11:138 *:*
UDP 10.1.1.11:11581 *:*
UDP 80.218.231.109:8802 *:*
UDP 127.0.0.1:1041 *:*
UDP 127.0.0.1:1043 *:*
Ruud@pc11 ~
$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
2208 1 2208 2208 0 1003 20:17:59 /usr/bin/bash
4068 1 4068 4068 ? 400 20:20:22 /usr/sbin/inetd
1888 4068 4068 1888 ? 400 20:20:22 /usr/sbin/inetd
1200 2208 1200 524 0 1003 20:20:39 /usr/bin/ps
----------------------------------------------------------------------------
-----------------------------------
----- Original Message -----
From: "Larry Hall" <cygwin-lh@cygwin.com>
To: "Ruud Huynen" <ruud.huynen@hispeed.ch>; <cygwin@cygwin.com>
Sent: Sunday, January 11, 2004 8:02 PM
Subject: Re: problems with cygrunsrv and inetd
> At 12:32 PM 1/11/2004, Ruud Huynen you wrote:
> >Hello
> >
> >I looked on the internet and inetutils.README to install the inetd and
the
> >ssh service.
> >When I create the windows service inetd with:
> >cygrunsrv -I inetd -d "CYGWIN inetd" -p /usr/sbin/inetd -a -d -e
> >CYGWIN=ntsec
>
>
> Why did you install it this way? inetutils.README clearly states that
> the inetd service is installed with the '--install-as-service' flag.
>
>
> >I noticed that the executable pointed to in the service is, which is
wrong:
> >C:\cygwin\bin\cygrunsrv.exe
>
>
> No, it's not wrong for a service installed with cygrunsrv.
>
>
> >After removing it
> >cygrunsrv -R inetd
> >
> >And using:
> >/usr/sbin/inetd.exe --install-as-service
> >I have in the service: C:\cygwin\usr\sbin\inetd.exe
> >
> >Starting it shows the two inetd processes running, but netstat -an does
not
> >show any listening ports!
>
>
>
> From inetutil.README:
>
> Current caveat: inetd is visible twice in the process list.
> This is currently needed to work correctly with the service
> manager. This should be solved in a future release.
>
>
> >I thought -d means debugging. Not daemon. But I tried it and changed the
> >registry to add the -d. The same behaviour is noticed.
> >
> >Only by using the following command I have the ports open, and can
connect:
> >$ /usr/sbin/inetd.exe -d &
> >[1] 2936
> >
> >Ruud@pc11 /
> >$ ADD : echo proto=tcp, wait=0, user=root builtin=4080d0 server=internal
> >registered internal on 4
> >ADD : echo proto=udp, wait=0, user=root builtin=4080e0 server=internal
> >registered internal on 5
> >ADD : discard proto=tcp, wait=0, user=root builtin=4080f0 server=internal
> >registered internal on 6
> >ADD : discard proto=udp, wait=0, user=root builtin=408100 server=internal
> >registered internal on 7
> >ADD : daytime proto=tcp, wait=0, user=root builtin=408130 server=internal
> >registered internal on 8
> >ADD : daytime proto=udp, wait=0, user=root builtin=408140 server=internal
> >registered internal on 9
> >ADD : chargen proto=tcp, wait=0, user=root builtin=408150 server=internal
> >registered internal on 10
> >ADD : chargen proto=udp, wait=0, user=root builtin=408160 server=internal
> >registered internal on 11
> >ADD : time proto=tcp, wait=0, user=root builtin=408110 server=internal
> >registered internal on 12
> >ADD : time proto=udp, wait=0, user=root builtin=408120 server=internal
> >registered internal on 13
> >ADD : ftp proto=tcp, wait=0, user=root builtin=0 server=/usr/sbin/in.ftpd
> >registered /usr/sbin/in.ftpd on 14
> >ADD : telnet proto=tcp, wait=0, user=root builtin=0
> >server=/usr/sbin/in.telnetd
> >registered /usr/sbin/in.telnetd on 15
> >ADD : shell proto=tcp, wait=0, user=root builtin=0
server=/usr/sbin/in.rshd
> >registered /usr/sbin/in.rshd on 16
> >ADD : login proto=tcp, wait=0, user=root builtin=0
> >server=/usr/sbin/in.rlogind
> >registered /usr/sbin/in.rlogind on 17
> >ADD : exec proto=tcp, wait=0, user=root builtin=0
server=/usr/sbin/in.rexecd
> >registered /usr/sbin/in.rexecd on 18/usr/bin/ssh-host-config -y
> >ADD : talk proto=udp, wait=1, user=root builtin=0
server=/usr/sbin/in.talkd
> >registered /usr/sbin/in.talkd on 19
> >ADD : ntalk proto=udp, wait=1, user=root builtin=0
server=/usr/sbin/in.talkd
> >registered /usr/sbin/in.talkd on 20
> >
> >Using /usr/sbin/inetd.exe without the '-d' does not work.
>
>
> Sounds to me like you didn't run iu-config. I'd recommend uninstalling,
> removing /etc/inetd.conf, reinstalling, and running iu-config.
>
>
> >Using the "/usr/bin/ssh-host-config -y" to configure ssh has the same
> >problem. In the service the executable is 'C:\cygwin\bin\cygrunsrv.exe'.
> >
> >What is wrong ?
>
>
> Nothing. That's correct.
>
>
> --
> Larry Hall http://www.rfk.com
> RFK Partners, Inc. (508) 893-9779 - RFK Office
> 838 Washington Street (508) 893-9889 - FAX
> Holliston, MA 01746
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck_output.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040111/f7d7af28/attachment.txt>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list