Please login or register. August 18, 2019, 09:23:26 PM

Author Topic: logout command doesn't work on Aix 6  (Read 14248 times)

0 Members and 1 Guest are viewing this topic.

Murnau

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
logout command doesn't work on Aix 6
« on: November 28, 2008, 08:40:55 PM »
Does someone encountered issue like described in Subject.

Thank you in advance.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: logout command doesn't work on Aix 6
« Reply #1 on: November 29, 2008, 10:54:36 AM »
Way way back when - logout was a built-in for the csh.

I have always used either ctrl-d, or exit as the way to leave a shell.

So, I guess first we need to hear which shell are you using.

Murnau

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
Re: logout command doesn't work on Aix 6
« Reply #2 on: November 30, 2008, 01:01:20 PM »
Shell: /usr/bin/ksh

During logout from ssh session, I encountered :
$ logout
3004-064 You must be the login user.

$ oslevel -s
6100-01-02-0834

$ type logout
logout is /usr/bin/logout

$ lslpp -w /usr/bin/logout
  File                                        Fileset               Type
  ----------------------------------------------------------------------------
  /usr/bin/logout                             bos.rte.security      File

Thank you in advance.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: logout command doesn't work on Aix 6
« Reply #3 on: December 01, 2008, 07:41:35 PM »
Well, using ssh on AIX 5.3 I get the same response.

However, using telnet it works as expected.

I used to build openssh myself, but currently use the openssh provided by IBM.

Seems that sshd does not start the session the same way telnetd does. The solution will lie in an examination of how sshd initiates the initial shell compared to telnetd.

I guess you could make exit an alias for logout. exit works fine

michael@x054:[/home/michael]type exit
exit is a shell builtin.

van den berg

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
Re: logout command doesn't work on Aix 6
« Reply #4 on: September 28, 2009, 10:28:20 AM »
looks like this now works in 6100-03-01-0921