[mosh-devel] mosh-server doesn't display (all of) the motd on Ubuntu Trusty machines

Jonathon Weiss jweiss at mit.edu
Mon Sep 15 17:42:09 EDT 2014


Hi Keith,

I suspect this is done the the magic of PAM, but I haven't UTSL'd or anything.  My guess is based mostly on the fact that "man motd" on my Trusty machine references "pam_motd".

 	Jonathon


On Mon, 15 Sep 2014, Keith Winstein wrote:

> Thanks, Jonathon. mosh-server just copied what OpenSSH sshd does. Do you know how OpenSSH knows it's supposed to print /run/motd.dynamic? (Does Ubuntu patch it? Is there some other location to look at?) If
> so, maybe we should take the same patch for the Ubuntu packages of mosh.
> Cheers,
> Keith
> 
> On Mon, Sep 15, 2014 at 4:27 PM, Jonathon Weiss <jweiss at mit.edu> wrote:
>
>       On Ubuntu (at least Trusty) machines the motd is split between
>       /etc/motd and /run/motd.dynamic .  Note that Ubuntu Precise handles
>       this differently and /etc/motd is a symlink to /var/run/motd .  So on
>       Trusty machines where mosh-server prints /etc/motd, it misses all
>       content in /run/motd.dynamic (on the athena dialups that is all motd
>       content, as none of it is in /etc/motd .)  "man motd" on both Precise
>       and Trusty contains some useful information.
>
>               Jonathon
>
>               Jonathon Weiss <jweiss at mit.edu>
>               MIT/IS&T/O&I  Server Operations
>       _______________________________________________
>       mosh-devel mailing list
>       mosh-devel at mit.edu
>       http://mailman.mit.edu/mailman/listinfo/mosh-devel


More information about the mosh-devel mailing list