Operating System - HP-UX
1822231 Members
3980 Online
109642 Solutions
New Discussion юеВ

Another telnet problem: single user not able to authenticate.

 
Kristopher March
Regular Advisor

Another telnet problem: single user not able to authenticate.

HP-UX 11.00 V-Class
Plenty of RAM and processors.

Having a problem with telnet. Here's a little background.

Decided to test a few things: One, we modified our hosts.allow file to retrict a certain machine from using the telnet service.
Entry looked like the following:

telnetd :DENY IP ADDRESS (first line in file)

after the change I did a /usr/sbin/inetd -c

Telnet was denied from that machine, which is what we wanted to see.

Two, I reversed the operation and enabled that IP address to come in. (removed above said line, completely)

I did another /usr/sbin/inetd -c

User tried to log on machine; it failed after typing in his CORRECT password. I also tried from his machine and it let me in.
Now /etc/hosts.allow is set to allow all telnet from the subnet he is located on.
Three, I've checked everything I can think of:
/var/adm/inetd.sec looks fine and no mention of restricting telnet. I do have echo and chargen set to deny in that file, for what its worth.
"netstat -a" shows me that telnet is listening.
Said user's shell is listed in /etc/shells file

There doesn't seem to be a problem with the telnet kernel parameters either. We only have, at the most, 1 or 2 telnet users coming into the box. Must of us use ssh to come in.

Additionally, his telnet connection is being logged. But no errors are produced. User cannot log in from other workstation to server, either. It's a strange problem and I've run out of things to check.

"This ain't no burger flippin job!"
10 REPLIES 10
Jeff Schussele
Honored Contributor

Re: Another telnet problem: single user not able to authenticate.

Hi Kristopher,

1)Check that user's shell definition in the /etc/passwd file.

2) Run pwck to verify the integrity of the passwd file

Has to be user specific.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Kristopher March
Regular Advisor

Re: Another telnet problem: single user not able to authenticate.

Jeff;

Just ran the pwck utility and the passwd file checked out fine. So does the users entry in the passwd file. His shell is: /usr/bin/sh

Any other ideas?
"This ain't no burger flippin job!"
Jeff Schussele
Honored Contributor

Re: Another telnet problem: single user not able to authenticate.

Ok...
What message do you receive on the workstation?

Are you running SSH on this system?

Run inetd -l to turn up the logging level & try again.

Don't forget to turn it off (inetd -c) after checking as it'll really fill syslog.log

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Kristopher March
Regular Advisor

Re: Another telnet problem: single user not able to authenticate.

On the workstation, the user is able to connect in, enter username/passwd and then it acts like his password is not valid/correct.

Logging had already been on so I see him connnect and then nothing else in the log.

The machine has also been rebooted, but not a result of this.

Yes, we are running ssh. The sshd2_config was modified to restrict his username. But I reversed all that. And anytime I make a change to the ssh config files, I issue a kill -HUP on the pid file. He is able to ssh in. This was all done before the reboot.
"This ain't no burger flippin job!"
Kristopher March
Regular Advisor

Re: Another telnet problem: single user not able to authenticate.

"Login incorrect" is the message he gets. The user is typing in the correct passwd, or else he wouldn't be able to connect in with ssh.
"This ain't no burger flippin job!"
GIRIJA SWAIN
Advisor

Re: Another telnet problem: single user not able to authenticate.

Hi Just check the entry in . You can open a seassion by "#tail -f /var/adm/syslog/syslog.log" and then try to telnet from that subnet. You will find some error and find out from there. Ensure your telnet requests are getting in to the target server.
GSS-PALO-ALTO
Kristopher March
Regular Advisor

Re: Another telnet problem: single user not able to authenticate.

Yes, telnet connections are being logged. I can see them.
"This ain't no burger flippin job!"
Jeff Schussele
Honored Contributor

Re: Another telnet problem: single user not able to authenticate.

Well, let's see.
If you're using hosts.allow then you're using tcpwrapper - correct?

What's in the hosts.deny file?

What does tcpdchk return?

If all else checks out - try setting a new PW for that user.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Kristopher March
Regular Advisor

Re: Another telnet problem: single user not able to authenticate.

No hosts.deny file exists.

Don't have tcpdchk on machine.

I'll have the user reset his passwd to something else. Let you know what happens.
thanks so far.
"This ain't no burger flippin job!"
Artyom Voronchihin
Respected Contributor

Re: Another telnet problem: single user not able to authenticate.

Hello !
It's silly idea, but such behaviour of login happens when user is trying to login with UID 0, /etc/securetty file exist and does not contain record about tty which use for the telnet connection.
"Intel inside" is not a label, it's a warning.