Bug 255

Summary: You must "exec" login from the lowest login shell.
Product: Portable OpenSSH Reporter: Doug Manton <dmanton>
Component: sshdAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: PPC   
OS: AIX   
Attachments:
Description Flags
sshd -d -d -d
none
Add LOGIN_NEEDS_UTMPX to configure.ac for AIX none

Description Doug Manton 2002-05-22 20:03:21 AEST
The UseLogin option is broken on AIX in openssh-3.2.2p1.  Setting "UseLogin 
yes" results in an error message and failed login for each attempted login:

/dev/pts/1: 3004-004 You must "exec" login from the lowest login shell.

I can re-create this problem unser 3.0.2p1, 3.1pq and 3.2.2p2 on multiple AIX 
4.3.3 systems (ML6 up to ML10).

Does anyone know AIX well enough to diagnose the cause and propose a solution?
Comment 1 Doug Manton 2002-05-22 20:06:35 AEST
Created attachment 100 [details]
sshd -d -d -d
Comment 2 Kevin Steves 2002-05-26 03:34:53 AEST
can you try with LOGIN_NEEDS_UTMPX defined?
Comment 3 Doug Manton 2002-05-26 05:07:46 AEST
-DLOGIN_NEEDS_UTMPX solves the problem for 3.2.2.  I'll try it with 3.2.3 when 
I am back in the office.  If successful then it would be great to have this 
auto-defined for AIX by configure.  

Thanks for your help :)
Comment 4 Darren Tucker 2002-06-21 21:32:53 AEST
Created attachment 115 [details]
Add LOGIN_NEEDS_UTMPX to configure.ac for AIX
Comment 5 Darren Tucker 2002-06-21 21:36:12 AEST
Confirmed problem still exists in -cvs and goes away with this patch, after 
make distprep, configure and rebuild. Tested on AIX 4.3.3 ML 0 only.
Comment 6 Kevin Steves 2002-06-23 04:51:19 AEST
thanks, commited.
Comment 7 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED