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

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



reassign 919271 debianutils
thanks

Hey,

On Mon, 2019-01-14 at 12:47 +0100, Santiago Vila wrote:
> > 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).

Sorry, this isn't an ssh related request. I have the motd displayed
when on my first connection to a remote system for an interactive
shell. My comment about ssh was merely that to see the motd again you
need to login again, potentially removing the ControlMaster file for
the remote machine you're logging into.

Before we had dynamic motd generation, if something was modifying the
motd file, you could just cat /etc/motd to see the contents. It is no
longer so trivial.

> > 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.

Yes, it is currently happening via a PAM module. When you first enter
an interactive session.

> 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.

Okay, fair enough.

> > 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.

Oops, I see how that is happening now. My bad.

> 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.

Sorry, incorrect assumption. This has nothing to do with openssh-
server. I suspect that debianutils might be a better package, so I've
re-assigned this bug to that package.

Thank you for you response!

-- 
Andrew Ruthven, Wellington, New Zealand
andrew@etc.gen.nz              | linux.conf.au 2019, Christchurch, NZ
Catalyst Cloud:                |    https://lca2019.linux.org.au/
   https://catalystcloud.nz    |


Reply to: