Solved

Can telnet in from one account, not another

Posted on 1998-02-05
5
196 Views
Last Modified: 2010-03-18
I have a strange problem. Slackware 2.0.30 kernel. From some accounts I have on this machine, I can telnet into itself fine, others connect, then immediately disconnect, as if a wrapper denied entrance. But why should it care if I am telnetting in from the account 'test' or the account 'mud'. test can get in, mud cannot. The reason this concerns me is that I have software that telnets into the machine automatically and runs a linux program automatically. The softwear, when telnetting in, is denied access, instantly drops connection. When I run telnet manually, and go in, it works. Using my program to telnet into my account at work, it works... seems it's being picky and denying whoever if feels like. I added ALL: ALL to hosts.allow... didnt do anything. Any ideas? Any hints?
0
Comment
Question by:edskee
5 Comments
 
LVL 4

Expert Comment

by:unicorntech
ID: 1587485
Remove the file /etc/hosts.deny. Do a kill - HUP (pid of inetd) and then try again. Also do a tail -f /var/adm/syslog and messages and see why the service was denied. This should then enable to track down the problem
0
 
LVL 2

Author Comment

by:edskee
ID: 1587486
Tried that, didnt help. It's still disconnecting. syslog doesnt show anything, this is what messages shows:
Feb  6 07:44:39 ebonmists in.telnetd[776]: connect from mud@192.168.1.1

That's it. Disconnects. Connection closed by forigen host. Why would it care about the login name you are logged in under when accpeting a telnet request? This is really pissing me off. Might I have a bad copy of a tcp wrapper? Should I nuke the wrapper and just go with in.telnetd? What does the wrapper do besides denying access to someone I tell it to deny access to? I don't currently need to deny anyone, so it should be safe to lose the wrapper, right?
0
 
LVL 2

Author Comment

by:edskee
ID: 1587487
Ok, I found the problem. I had a bad/old/bugged/whatever version of in.telnetd. I copied a copy from work overtop of it, restarted inetd, and it works fine now. Dont know what the problem was, nor do i care to know. It works, I'm happy. Unicorntech... re-answer it with something so we can close the question. Thanks for your help.
0
 
LVL 5

Expert Comment

by:n0thing
ID: 1587488
In your scripts, program. If using csh do a "set TERM=vt100",
or Bourne Shell "set TERM vt100 export TERM". Or do it manually
on the command line and retry telnet to see if it still denies
you. My approach seems strange but try it. :))

Regards,
Minh Lai
0
 
LVL 2

Accepted Solution

by:
alexbik earned 100 total points
ID: 1587489
I know that you've already solved the problem, but take a look
at the shell that's installed for that account. Is it in /etc/shells? Some programs can be picky about that.

Alex

0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now