Quote:
Originally posted by Neo
/etc/services is not (generally) used to change ports.
Well, I must say that that with the versions of unix that I am familiar with, /etc/services does indeed control which ports a program will use.
To verify that this is still true I signed in to a Solaris 8 and a HP-UX 11 system. I did a "telnet localhost" and verified that I got a telnet session. Then I changed /etc/services so that the telnet entry said 21/tcp rather than 23/tcp. Then I repeated the "telnet localhost" test. In both cases I was now talking to a ftp server.
Yes, the telnet program does offer the user a way to override the default port on the command line. But even there, an /etc/services search is performed if the port is non-numeric. That's why "telnet localhost 25" and "telnet localhost smtp" both work.
Doesn't your unix system behave the same way?