On 2018-05-10 10:48, Barry Margolin wrote:
> Isn't motd only shown on interactive logins? ssh with a command on the
> command line isn't interactive.
On normal Linux systems at least, whether or not motd is shown
ultimately depends on the PAM configuration. On my current desktop the
relevant line is hidden beneath 2 levels of includes:
matica!5 ~$ fgrep motd /etc/pam.d/system-login
session optional pam_motd.so motd=/etc/motd
matica!6 ~$ fgrep system-login /etc/pam.d/*
/etc/pam.d/system-local-login:auth include system-login
/etc/pam.d/system-local-login:account include system-login
/etc/pam.d/system-local-login:password include system-login
/etc/pam.d/system-local-login:session include system-login
/etc/pam.d/system-remote-login:auth include system-login
/etc/pam.d/system-remote-login:account include system-login
/etc/pam.d/system-remote-login:password include system-login
/etc/pam.d/system-remote-login:session include system-login
matica!7 ~$ fgrep system-local-login /etc/pam.d/*
/etc/pam.d/login:auth include system-local-login
/etc/pam.d/login:account include system-local-login
/etc/pam.d/login:password include system-local-login
/etc/pam.d/login:session include system-local-login
/etc/pam.d/runuser-l:auth include system-local-login
/etc/pam.d/runuser-l:account include system-local-login
/etc/pam.d/runuser-l:password include system-local-login
/etc/pam.d/runuser-l:session include system-local-login
--
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for
no-use.mooo.com.