1.5.18: telnet: tcp/telnet: unknown service

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

1.5.18: telnet: tcp/telnet: unknown service

Marcel Kloosterman
Hi,

I've a problem with telnet, ftp and probably more programs. But not ssh.
I don't know since when this problem appeared on my system,

In the mailing list I've seen that Someone asked for an strace. Well......
this is the part where it seems to go wrong:

   23  347369 [main] telnet 4140 cygwin_gethostbyname: h_name (VG
  378  347747 [main] telnet 4140 __set_errno: void
__set_winsock_errno(const char*, int):289 val 1
   41  347788 [main] telnet 4140 __set_winsock_errno: __dup_ent:389 -
winsock error 11004 -> errno 1
   23  347811 [main] telnet 4140 cygwin_getservbyname: 0x0 = getservbyname
(telnet, tcp)
   66  347877 [main] telnet 4140 fhandler_base::write: binary write
telnet: tcp/telnet: unknown service

Further I've read that there can be a proble with the services file.
I tried the following:
cd `cygpath -u $SYSTEMROOT/system32/drivers/etc`
mv services services.old
echo "telnet 23/tcp" > services"

But this did't help.
Then I read something about Filemon from sysinternals.
I downloaded the file en this is the outcome:

108     13:35:01        telnet.exe:5396 OPEN  
C:\cygwin\bin\%SystemRoot%\System32\drivers\etc\services        PATH NOT
FOUND  Options: Open  Access: All
109     13:35:01        telnet.exe:5396 OPEN  
C:\cygwin\bin\%SystemRoot%\System32\drivers\etc\services        PATH NOT
FOUND  Options: Open  Access: All


While executing the telnet I was standing in c:\cygwin\bin. If I go to  an
other directory you would see something like:
108     13:35:01        telnet.exe:5396 OPEN  
OTHERDIRECTORY\%SystemRoot%\System32\drivers\etc\services        PATH NOT
FOUND  Options: Open  Access: All
109     13:35:01        telnet.exe:5396 OPEN  
OTHERDIRECTORY\%SystemRoot%\System32\drivers\etc\services        PATH NOT
FOUND  Options: Open  Access: All


The only way to work with telnet is to use the portnumber:
telnet machine 23

Please help !!




--
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/

cygcheck.out (35K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 1.5.18: telnet: tcp/telnet: unknown service

Igor Peshansky
On Wed, 2 Nov 2005, Marcel Kloosterman wrote:

> Hi,
>
> I've a problem with telnet, ftp and probably more programs. But not ssh.
> I don't know since when this problem appeared on my system,
> [snip]
> 108     13:35:01        telnet.exe:5396 OPEN
> C:\cygwin\bin\%SystemRoot%\System32\drivers\etc\services        PATH NOT
> FOUND  Options: Open  Access: All

Looks like your /etc/services symlink is corrupted.  Remove it (and
/etc/hosts, /etc/protocols, /etc/networks), and re-run
/etc/postinstall/base-files-mketc.sh.done.
        Igor
--
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_ [hidden email]
ZZZzz /,`.-'`'    -.  ;-;;,_ [hidden email]
     |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
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/