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

2018-11-08 Thread Dmitry Bogatov


[2017-03-30 17:47] Faidon Liambotis 
> Two years later, the situation has changed a bit. Most of the fixes in
> the other packages are in. PAM was fixed to generate its contents under
> /run/motd.dynamic (#743286), login dropped its pam_exec call in favor of
> pam_motd (since 1:4.4-3) that Josh mentioned above, mimicking what SSH
> has been doing (and what Ubuntu has been doing for a long time).
> 
> There is really no point in shipping /etc/init.d/motd anymore. It
> currently just runs "uname -snrvm > /var/run/motd.dynamic" but this is
> being regenerated by both login and sshd via pam_motd anyway on every
> login, so it's completely useless right now.

Seems it is true; both fgetty and dropbear use only /etc/motd, they will
not be affected.

> [... something about system ...]

What do you think, dear co-maintainers?



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

2017-03-30 Thread Faidon Liambotis
Hi,

Two years later, the situation has changed a bit. Most of the fixes in
the other packages are in. PAM was fixed to generate its contents under
/run/motd.dynamic (#743286), login dropped its pam_exec call in favor of
pam_motd (since 1:4.4-3) that Josh mentioned above, mimicking what SSH
has been doing (and what Ubuntu has been doing for a long time).

There is really no point in shipping /etc/init.d/motd anymore. It
currently just runs "uname -snrvm > /var/run/motd.dynamic" but this is
being regenerated by both login and sshd via pam_motd anyway on every
login, so it's completely useless right now.

It's also being masked by default by systemd:
$ ls -l /lib/systemd/system/motd.service
lrwxrwxrwx 1 root root 9 Mar  2 10:21 /lib/systemd/system/motd.service -> 
/dev/null

So in the majority of systems, it's not even being invoked anymore, and
hasn't been since at least jessie.

TL;DR: please drop /etc/init.d/motd from initscripts, it's an entirely
redudant file these days.

Thanks,
Faidon



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

2014-12-31 Thread Faidon Liambotis
On Sun, Oct 12, 2014 at 02:39:31PM -0700, Steve Langasek wrote:
 I don't think it's too late for jessie.  It should be discussed on
 debian-devel, so that we can all get on the same page, and it needs
 agreement from the relevant maintainer about who should ship
 /etc/update-motd.d/00-header (whether it's base-files, or something else).

I took the liberty of summarizing the situation and spawning a
debian-devel thread per your advice, 20141231142036.ga16...@tty.gr /
https://lists.debian.org/debian-devel/2014/12/msg00368.html.

Happy new year to all :)
Faidon


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org