[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#669699: openssh-server: Please support dynamic motd (initscripts change)



On Sat, Apr 21, 2012 at 10:59:13AM +0100, Colin Watson wrote:
> tags 669699 pending
> thanks
> 
> On Sat, Apr 21, 2012 at 10:06:34AM +0100, Roger Leigh wrote:
> > This does require two separate pam_motd lines in your pam service
> > file, one for the dynamic and one for the static parts (patch
> > attached).
> 
> Thanks.  Applied in bzr for my next upload.

Could you possibly apply the following patch in addition.  This
just ensures that any scripts in /etc/update-motd.d (if present,
unlikely on Debian), are not run twice.

BTW, I'd like to upload the sysvinit version providing this
functionality to unstable towards the end of the week, and it
would be great if this was fixed in unstable before then, if
possible.  I'll make another upload to experimental in the
interim.


Many thanks,
Roger


=== modified file 'debian/openssh-server.sshd.pam'
--- debian/openssh-server.sshd.pam	2012-04-21 09:58:34 +0000
+++ debian/openssh-server.sshd.pam	2012-05-21 21:06:19 +0000
@@ -26,7 +26,7 @@
 # Print the message of the day upon successful login.
 # This includes a dynamically generated part from /run/motd.dynamic
 # and a static (admin-editable) part from /etc/motd.
-session    optional     pam_motd.so  motd=/run/motd.dynamic
+session    optional     pam_motd.so  motd=/run/motd.dynamic noupdate
 session    optional     pam_motd.so # [1]
 
 # Print the status of the user's mailbox upon successful login.


-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
    -    GPG Public Key: 0x25BFB848   Please GPG sign your mail.



Reply to: