[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#764841: please use pam_exec to display "dynamic" motd



On Sun, Oct 12, 2014 at 08:39:18AM +0100, Colin Watson wrote:
> Doesn't the motd stuff do considerably more than just uname?

Hmm, yes, apparently this is handled directly by pam_motd; if
/etc/update-motd.d exists it runs the scripts there with run-parts to
generate the motd file dynamically. This feature is also in Debian, just
not configured by default.

So the change that was made in login probably breaks this?

That also means that we should probably have handled the disappearance
of the /etc/init.d/motd init script just by shipping a script in
/etc/update-motd.d that outputs the uname, not by using pam_exec.

-- 
Romain Francoise <rfrancoise@debian.org>
http://people.debian.org/~rfrancoise/


Reply to: