- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: script doesn't work using port 23 in inetd.con...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 05:09 AM
09-19-2001 05:09 AM
script doesn't work using port 23 in inetd.conf
I have written an expect script using service port number 5000, it works fine.
The final goal of the script is to use port 23. After I changed the script's service port number to 23 and did a refresh of inetd. The telnet client will not be able to connect to the server, it just hang with a blank screen.
Any pointer is appreciated.
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 06:45 AM
09-19-2001 06:45 AM
Re: script doesn't work using port 23 in inetd.conf
have you set the entrie in the inetd.conf in this way
telnet stream tcp nowait /usr/sbin/tcpd /path/to/my/script
so the tcp warper is used?
have you set the screen size and the TERM type so that expect can determine it?
best regards
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 05:16 PM
09-19-2001 05:16 PM
Re: script doesn't work using port 23 in inetd.conf
The script had been tested using service port 5000 and worked fine.
When I tried it using port 23, I actually inter-change port 5000 and 23. A freshed of inetd was also performed.
Rgds,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2001 06:57 AM
09-20-2001 06:57 AM
Re: script doesn't work using port 23 in inetd.conf
hope it helps a bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2001 05:00 PM
09-20-2001 05:00 PM
Re: script doesn't work using port 23 in inetd.conf
Appreciate if your advice on how to disable telnetd.
I thought the way I did will swop the telnetd port to 5000.
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2001 05:00 PM
09-20-2001 05:00 PM
Re: script doesn't work using port 23 in inetd.conf
Appreciate if you can advice on how to disable telnetd.
I thought the way I did will swop the telnetd port to 5000.
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:12 AM
09-21-2001 01:12 AM
Re: script doesn't work using port 23 in inetd.conf
I've found out why the script doesn't work when I changed its port number to 23 and telnet port to 5000. This is because within my script, it telnet to another host. When the telnet port changed to 5000, then the telent within the script will not work.
Is there a work around ?
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:45 AM
09-21-2001 01:45 AM
Re: script doesn't work using port 23 in inetd.conf
1) you have written a script witch should answer on Port 23 on host
2) in this script you want to telnet on port 23 to host and wnt to telnet to host
3) Your telnetd should listen on port 5000 on host
so i whould enter in the inetd.conf on host
----snip----
# For my script because it runs on the telnet port 23
telnet stream tcp nowait root /usr/sbin/tcpd /root/foo.sh
# For the real telnetd to listen on port 5000
mytelnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
---snip----
at next you add following to your /etc/services
---snip---
# so you assine the nummber to a name
mytelnet 5000/tcp
---snip---
no you should c... to telnet mytelnet and you should get your normal telnet promt.
hope this helps a bit
- Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 09:09 PM
11-14-2001 09:09 PM
Re: script doesn't work using port 23 in inetd.conf
Within the script use the port no along with telnet
telnet host portno.
e.g.;
telnet 153.11.199.32 23
This should work ..
Manoj