Comment 4 for bug 587858

Revision history for this message
Stephane Chazelas (stephane-chazelas) wrote : Re: [Bug 587858] Re: update-motd executed even in non-interactive sessions

2010-07-22 17:28:48 -0000, Dustin Kirkland:
> Patch to pam developed, tested, and pushed to lp:~kirkland/+junk/587858.
> Awaiting a quick review by Steve before uploading to Maverick.
[...]

Note that though this fix would be an improvement, in my
opinion, it's a fix to another bug like "the result of
update-motd is not cached". This bug is about motd being
computed in non-interactive non-login ssh sessions where
motd is not even displayed.

Maybe a fix/wa could be implemented by doing a
pam_putenv("PAM_NONLOGINSESSION=") in sshd upon non-login
sessions or hushedlogin ones and have pam_motd skip the
update-motd in that case.

Or split into two services sshd-login and sshd with
/etc/pam.d/sshd-login including sshd and adding the pam_motd...

Cheers,
Stephane