Bug#764841: please use pam_exec to display "dynamic" motd
On Sat, Oct 11, 2014 at 05:09:38PM +0200, Romain Francoise wrote:
> As of systemd 208-7, the motd init script is masked and no longer runs
> at boot. login was updated to replace its use of /run/motd.dynamic with
> a pam_exec invocation:
>
> | # Prints the message of the day upon succesful login.
> | # (Replaces the `MOTD_FILE' option in login.defs)
> | session optional pam_exec.so type=open_session stdout /bin/uname -snrvm
> | session optional pam_motd.so
>
> Please consider doing the same in openssh-server's pam configuration.
Doesn't the motd stuff do considerably more than just uname? On my
Ubuntu system it says:
Welcome to Ubuntu Utopic Unicorn (development branch) (GNU/Linux 3.16.0-17-generic x86_64)
* Documentation: https://help.ubuntu.com/
485 packages can be updated.
0 updates are security updates.
*** System restart required ***
So I think I need to find a way to avoid regressing that.
--
Colin Watson [cjwatson@debian.org]
Reply to: