[Bug 1855089] Re: Please show MOTD in containers' shell started without PAM printing MOTD
Launchpad Bug Tracker
1855089 at bugs.launchpad.net
Thu Dec 19 10:17:46 UTC 2019
This bug was fixed in the package update-motd - 3.6-0ubuntu1.19.10.1
---------------
update-motd (3.6-0ubuntu1.19.10.1) eoan; urgency=medium
* show-motd: Show MOTD from /etc/profile.d snippet in the first shell every day
instead of showing it only after 24h is elapsed since showing it last time.
This is easier to understand. (LP: #1855918)
update-motd (3.6-0ubuntu1.19.10.0) eoan; urgency=medium
* Show MOTD using an /etc/profile.d snippet when it was not shown
by PAM and it was shown more than a day ago. (LP: #1855089)
- Add autopkgtest
- Set MOTD_SHOWN=update-motd in /etc/profile.d after showing MOTD
- Add Breaks: for packages with /etc/update-motd.d snippets failing as
a normal user. Also add Breaks: on libpam-modules not setting
MOTD_SHOWN=pam.
- I18n the message about .hushlogin
- Split /etc/profile.d snippet to new show-motd binary package
to not change the behaviour of the update-motd package on upgrade.
- update-motd.8: Update man page with new update-motd --show-only option
and also mention the new show-motd package.
- update-motd.sh: Don't source, but run update-motd
This fixes being dropped out of shell when update-motd exits with
nonzero value.
- update-motd.sh: Don't misleadingly indicate that script is running with set -e
-- Balint Reczey <rbalint at ubuntu.com> Tue, 10 Dec 2019 22:12:29 +0100
** Changed in: update-motd (Ubuntu Eoan)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-motd in Ubuntu.
https://bugs.launchpad.net/bugs/1855089
Title:
Please show MOTD in containers' shell started without PAM printing
MOTD
Status in update-motd:
New
Status in update-motd package in Ubuntu:
Fix Released
Status in update-motd source package in Eoan:
Fix Released
Bug description:
[Impact]
* Users of containers may never see the MOTD of the container if they are always to the container's shell without PAM being involved.
* MOTD contains important information about the system's health including the security updates to be installed thus it is desired to show MOTD in container shells, too.
* The fix is creating a snippet in /etc/profile.d which shows, but not necessarily updates MOTD once a day.
[Test Case]
* Install show-motd in an LXC container.
* Observe MOTD shown when starting the container shell with
$ lxc shell <container name>
[Regression Potential]
* The new functionality is added in a new package, shown-motd, thus users of update-motd should not observe any regression.
* The change in update-motd is adding the --show-only optional option. Both the new and old code patch is exercised in autopkgtest and should be safe.
[Other Info]
* The fix relies on PAM setting MOTD_SHOWN=pam to avoid printing MOTD
twice.
To manage notifications about this bug go to:
https://bugs.launchpad.net/update-motd/+bug/1855089/+subscriptions
More information about the foundations-bugs
mailing list