Bug 1031

Summary: PrintMotd does not work when UseLogin is enabled
Product: Portable OpenSSH Reporter: Ponraj <tryponraj>
Component: sshdAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm, senthilkumar_sen
Priority: P2    
Version: 4.0p1   
Hardware: All   
OS: HP-UX   
Bug Depends on:    
Bug Blocks: 2594    
Attachments:
Description Flags
Patch for PrintMotd directive when uselogin is enabled none

Description Ponraj 2005-05-06 17:20:33 AEST
PrintMotd directives fails to display the /etc/motd file content when UseLogin 
is enabled.
Comment 1 senthilkumar 2005-05-06 19:11:04 AEST
Created attachment 900 [details]
Patch for PrintMotd directive when uselogin is enabled

The attached Patch calls do_motd() once utmp recording is completed in
do_pre_login() in session.c. This solves the problem in HP-UX.
Comment 2 Damien Miller 2016-08-19 13:20:23 AEST
UseLogin is deprecated in OpenSSH 7.4
Comment 3 Damien Miller 2021-04-23 15:11:01 AEST
closing resolved bugs as of 8.6p1 release