Unix Technical Forum

SSH logout leaves user logged in on HP-UX 11.11

This is a discussion on SSH logout leaves user logged in on HP-UX 11.11 within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hello All, We have some HP-UX 11.11 servers with OpenSSH 4.1 installed. A program that uses Mindterm (Java SSH ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:56 PM
VS
 
Posts: n/a
Default SSH logout leaves user logged in on HP-UX 11.11

Hello All,

We have some HP-UX 11.11 servers with OpenSSH 4.1 installed.
A program that uses Mindterm (Java SSH libraries) logs into these
servers regularly, and is able to do whatever it is supposed to do.
Problem is that when the program logs out, the user is not logged out of
the server (as shown by "w").

When we login using Putty.exe from a Windoze box, it logs out correctly,
and the user is not left hanging.

We ran SSHD in debug mode and noticed a significant differences in the
messages when these clients logout:
When the Putty.exe logs out, we see a SIGCHLD and a CONNECTION_CLOSED
message, but that Mindterm client logs out, we don't see a SIGCHLD and
we see a CONNECTION_ABANDONED message.

Has anybody experienced this behavior?

Please help.

Regards,
VS.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:56 PM
VS
 
Posts: n/a
Default Re: SSH logout leaves user logged in on HP-UX 11.11

Bump.
Anybody?

VS wrote:
> Hello All,
>
> We have some HP-UX 11.11 servers with OpenSSH 4.1 installed.
> A program that uses Mindterm (Java SSH libraries) logs into these
> servers regularly, and is able to do whatever it is supposed to do.
> Problem is that when the program logs out, the user is not logged out of
> the server (as shown by "w").
>
> When we login using Putty.exe from a Windoze box, it logs out correctly,
> and the user is not left hanging.
>
> We ran SSHD in debug mode and noticed a significant differences in the
> messages when these clients logout:
> When the Putty.exe logs out, we see a SIGCHLD and a CONNECTION_CLOSED
> message, but that Mindterm client logs out, we don't see a SIGCHLD and
> we see a CONNECTION_ABANDONED message.
>
> Has anybody experienced this behavior?
>
> Please help.
>
> Regards,
> VS.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:56 PM
Alan D Johnson
 
Posts: n/a
Default Re: SSH logout leaves user logged in on HP-UX 11.11

VS wrote:
> Bump.
> Anybody?
>
> VS wrote:
>
>> Hello All,
>>
>> We have some HP-UX 11.11 servers with OpenSSH 4.1 installed.
>> A program that uses Mindterm (Java SSH libraries) logs into these
>> servers regularly, and is able to do whatever it is supposed to do.
>> Problem is that when the program logs out, the user is not logged out
>> of the server (as shown by "w").
>>
>> When we login using Putty.exe from a Windoze box, it logs out
>> correctly, and the user is not left hanging.
>>
>> We ran SSHD in debug mode and noticed a significant differences in the
>> messages when these clients logout:
>> When the Putty.exe logs out, we see a SIGCHLD and a CONNECTION_CLOSED
>> message, but that Mindterm client logs out, we don't see a SIGCHLD and
>> we see a CONNECTION_ABANDONED message.
>>
>> Has anybody experienced this behavior?
>>
>> Please help.
>>
>> Regards,
>> VS.

Are you running in trusted systems mode? There have been issues that
we have seen in the past with a different ssh product that does not
close the connection correctly and wtmp does not get updated, sounds
like the same kind of issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 07:56 PM
VS
 
Posts: n/a
Default Re: SSH logout leaves user logged in on HP-UX 11.11

Alan D Johnson wrote:
> VS wrote:
>> Bump.
>> Anybody?
>>
>> VS wrote:
>>
>>> Hello All,
>>>
>>> We have some HP-UX 11.11 servers with OpenSSH 4.1 installed.
>>> A program that uses Mindterm (Java SSH libraries) logs into these
>>> servers regularly, and is able to do whatever it is supposed to do.
>>> Problem is that when the program logs out, the user is not logged out
>>> of the server (as shown by "w").
>>>
>>> When we login using Putty.exe from a Windoze box, it logs out
>>> correctly, and the user is not left hanging.
>>>
>>> We ran SSHD in debug mode and noticed a significant differences in
>>> the messages when these clients logout:
>>> When the Putty.exe logs out, we see a SIGCHLD and a CONNECTION_CLOSED
>>> message, but that Mindterm client logs out, we don't see a SIGCHLD
>>> and we see a CONNECTION_ABANDONED message.
>>>
>>> Has anybody experienced this behavior?
>>>
>>> Please help.
>>>
>>> Regards,
>>> VS.

> Are you running in trusted systems mode? There have been issues that we
> have seen in the past with a different ssh product that does not close
> the connection correctly and wtmp does not get updated, sounds like the
> same kind of issue.



Thanks Alan.
How can I determine if trusted systems mode is being used?

Regards,
Vinay.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 07:56 PM
JohnK
 
Posts: n/a
Default Re: SSH logout leaves user logged in on HP-UX 11.11

On Wed, 05 Apr 2006 17:43:31 +0000, VS wrote:
> How can I determine if trusted systems mode is being used?


There may be a more elegant way to detect it but if there is a /tcb
directory structure and all the password fields in /etc/passwd are * then
you are trusted.

JohnK
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 07:56 PM
Kilgaard
 
Posts: n/a
Default Re: SSH logout leaves user logged in on HP-UX 11.11

"JohnK" <johnk.dev.null@gmail.com> wrote in message
newsan.2006.04.05.20.43.33.756027@gmail.com...
> On Wed, 05 Apr 2006 17:43:31 +0000, VS wrote:
>> How can I determine if trusted systems mode is being used?

>
> There may be a more elegant way to detect it but if there is a /tcb
> directory structure and all the password fields in /etc/passwd are * then
> you are trusted.


The password fields being * is not (in itself) a reliable indicator, as you
may have the "ShadowPasswords" package installed without being Trusted.


*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-16-2008, 07:57 PM
Alan D Johnson
 
Posts: n/a
Default Re: SSH logout leaves user logged in on HP-UX 11.11

VS wrote:
> Alan D Johnson wrote:
>
>> VS wrote:
>>
>>> Bump.
>>> Anybody?
>>>
>>> VS wrote:
>>>
>>>> Hello All,
>>>>
>>>> We have some HP-UX 11.11 servers with OpenSSH 4.1 installed.
>>>> A program that uses Mindterm (Java SSH libraries) logs into these
>>>> servers regularly, and is able to do whatever it is supposed to do.
>>>> Problem is that when the program logs out, the user is not logged
>>>> out of the server (as shown by "w").
>>>>
>>>> When we login using Putty.exe from a Windoze box, it logs out
>>>> correctly, and the user is not left hanging.
>>>>
>>>> We ran SSHD in debug mode and noticed a significant differences in
>>>> the messages when these clients logout:
>>>> When the Putty.exe logs out, we see a SIGCHLD and a
>>>> CONNECTION_CLOSED message, but that Mindterm client logs out, we
>>>> don't see a SIGCHLD and we see a CONNECTION_ABANDONED message.
>>>>
>>>> Has anybody experienced this behavior?
>>>>
>>>> Please help.
>>>>
>>>> Regards,
>>>> VS.

>>
>> Are you running in trusted systems mode? There have been issues that
>> we have seen in the past with a different ssh product that does not
>> close the connection correctly and wtmp does not get updated, sounds
>> like the same kind of issue.

>
>
>
> Thanks Alan.
> How can I determine if trusted systems mode is being used?
>
> Regards,
> Vinay.


try /usr/lbin/getprpw root, if you are in trusted systems mode then that
will show you info about logins, otherwise it will give you a failure
message.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com