Operating System - Linux
1828036 Members
2533 Online
109973 Solutions
New Discussion

script doesn't work using port 23 in inetd.conf

 
yc_2
Regular Advisor

script doesn't work using port 23 in inetd.conf

Hi,

I have written an expect script and put it in inetd.conf using 5000 as port number. It works fine but my objective is to use port number 23 which is the telnet port. After I have changed the port number to 23, the telnet client just hang with a blank screen.

Any pointer is appreciated.


YC
1 REPLY 1
John Love_3
Regular Advisor

Re: script doesn't work using port 23 in inetd.conf

You would need to change the Telnet port so some other value, then you would be able to use port 23 for your script.
You would then need to modify any telnet sessions for that machine to use the different port value.
To summarize, you can't have 2 separate processes (services) listening to the same port at the same time.
So, edit your /etc/services file, and look for these entries:
telnet 23/tcp
telnet 23/udp

Change the 23 to some other value (a value not being used by another process).
Then add an entry for your process (replacing telnet with your process).
Then, restart xinetd (the daemon responsible for telnet in a Linux box).
That should do it.

John