Bug 1031 - PrintMotd does not work when UseLogin is enabled
Summary: PrintMotd does not work when UseLogin is enabled
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 4.0p1
Hardware: All HP-UX
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks: V_7_4
  Show dependency treegraph
 
Reported: 2005-05-06 17:20 AEST by Ponraj
Modified: 2021-04-23 15:11 AEST (History)
2 users (show)

See Also:


Attachments
Patch for PrintMotd directive when uselogin is enabled (456 bytes, patch)
2005-05-06 19:11 AEST, senthilkumar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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