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

Re: Bug#919271: base-files: Provide easy access to motd



reassign 919271 openssh-server
thanks

On Mon, Jan 14, 2019 at 11:47:03PM +1300, Andrew Ruthven wrote:
> Package: base-files
> Version: 10.1
> Severity: wishlist
> 
> Dear Maintainer,
> 
> Since we've started having dynamic generation of the system MOTD,
> re-displaying it is hard. Especially if people are using SSH connection
> sharing.

I have some buster machines at work and the motd is displayed when I
ssh into them. Did this problem you mention start to happen recently?

Also, you will not want the motd to be shown on ordinary ssh commands,
will you?

ssh remote-machine ls > list-of-files.txt

(I assume this is not what you want).

> How about a /bin/motd (or /usr/bin) command which runs the following:
> 
>   run-parts /etc/update-motd.d; cat /etc/motd

Hmm, no, no binaries in the base-files package, please.

This is already supposed to be handled by some PAM setting at /etc/pam.d.
See this bug for some details:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859124

(This is the bug which asked me to introduce 10-uname as a sane
default to recover the old behaviour).

> I've filed this bug report against base-files as this package delivers
> /etc/update-motd.d/10-uname.

This is just a hook so that other parts of the system do something
with it, it does not mean that base-files takes care of the run-parts
thing.

> Incidentally, the description for base-files says that it delivers
> /etc/motd, which it doesn't anymore.

It is still true that base-files contains the "master" default
i.e. "The programs included with the Debian GNU/Linux system are free
software. etc" but everything else is handled in other packages.

I'm going to assume that your main problem is that you would like to see
/etc/motd in ssh sessions.

So I'm reassigning this to openssh-server. The bug may still not be
there but I think it's closer.

Thanks.


Reply to: