Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

solaris 8 telnet problem

Status
Not open for further replies.

entrylevel

Technical User
Nov 29, 2001
46
CA
Hi I got a problem on solaris 8 when using the telnet,

host1% telnet host2
Trying 138.123.128.144...
Connected to host2.cocome.com.
Escape character is '^]'.

SunOS 5.8

Connection to host2.cocome.com closed by foreign host.

It immediately disconnected,

checked all realated files that I know, inetd.conf, hosts, services ... etc.

any clue to lead me?

thanks and regards!
 
Are you trying to log in as root? If so, is the CONSOLE=/dev/console line in /etc/default/login active (ie not commented out)? If it is, comment it out with # and try again. Note that this is generally regarded as a security risk, as root access should generally not be directly available through a telnet session. If you're not logging in as root, post back.
 
Hi KenCunningham,

Thanks for reply, I was NOT trying to login as root, and below are what I ve checked so far,

# netstat -an | grep '*.23' | grep LISTEN
*.23 *.* 0 0 24576 0 LISTEN
*.23 *.* 0 0
24576 0 LISTEN

# getent services telnet
telnet 23/tcp

# grep telnet /etc/inetd.conf
telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd

# grep telnet /etc/services
telnet 23/tcp

# ps -ef | grep inet
root 183 1 0 02:05:59 ? 0:00 /usr/sbin/inetd -s
root 405 371 0 02:22:15 console 0:00 grep inet

and /usr/bin/in.telnetd exists.

I think it's not the telnet service, just I happened to find in this way, I found other sympotoms as well, like... I'm able to use /net say .. cd /net/host3/scripts and do ls i can see everything however when I tried to run the scripts under it, no luck, could not run any of them which can be run from other hosts, another issue from this host is when I do

# hostname
/usr/bin/hostname: /bin/uname: not found

# which hostname
/usr/bin/hostname

# uname -a
SunOS host2 5.8 Generic_108528-29 sun4u sparc SUNW,Ultra-5_10

I just put all the info here in case they can tell if there is anything wrong with the system, hope I can find a clue to start troubleshooting. Thanks.

Regards!


 
Hi,
I Have similar issue. In fact, on certain machine, I can telnet (eg) to machine A from machine B, but can not telnet to machine A from machine C. And some machine I am kicked out immediately just like entrylevel.

So, I think is it something related to access allow and access denied? or some set up that allow ALL users able to telnet ? I don't know where is this file or else.
 
I would do one of two things A) check if you have TCP Wrappers installed on the system (/etc/hosts.allow, /etc/hosts.deny), B) vi /etc/inetd.conf and change it from tcp6 to just tcp, then kill -HUP pid. It does not look like it was installed judging from your inetd.conf file, but some admins will actually replace the original in.telnetd daemon with the tcpd daemon. I have seen that with TCP Wrappers if it was not configured for IPv6, then having it run to support that mode will not work. This might sound stupid but have you tried running the scripts "./filename"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top