One should perhaps add: On Wed, 2014-12-31 at 16:20 +0200, Faidon Liambotis wrote: > - Behavior is different between login & sshd. login has (#741129): > session optional pam_exec.so type=open_session stdout /bin/uname -snrvm > session optional pam_motd.so > > but SSH has: > session optional pam_motd.so motd=/run/motd.dynamic > session optional pam_motd.so noupdate For the OpenSSH server this is dependent on wheter UseLogin and/or UsePAM directives are being used or not, the later which has a configuration file default of "yes" in Debian (but not in upstream's default config or default value). In addition the server has the PrintMotd directive, which basically just prints the file /etc/motd, and which has a configuration file default of "no" in Debian (due to UsePAM defaulting to "yes"). Cheers, Chris.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature