I've looked into pam_motd, and found that it already has this code at the top of the call:
if (flags & PAM_SILENT) { return retval; } So I think this is an openssh issue - openssh ought to be setting PAM_SILENT in cases where it doesn't plan to show PAM_TEXT_INFO messages, so that the PAM modules don't waste their time. ** Package changed: pam (Ubuntu) => openssh (Ubuntu) ** Changed in: openssh (Ubuntu) Importance: High => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/587858 Title: update-motd executed even in non-interactive sessions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/587858/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs