[Bug 1855089] Re: Please show MOTD in containers' shell started without PAM printing MOTD
Balint Reczey
balint.reczey at canonical.com
Wed Dec 18 13:45:03 UTC 2019
Verified with 3.6-0ubuntu1.19.10.1 :
root at ee-motd-verify:~# apt install show-motd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
show-motd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2304 B of archives.
After this operation, 15.4 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu eoan-proposed/main amd64 show-motd all 3.6-0ubuntu1.19.10.1 [2304 B]
Fetched 2304 B in 0s (18.4 kB/s)
Selecting previously unselected package show-motd.
(Reading database ... 30302 files and directories currently installed.)
Preparing to unpack .../show-motd_3.6-0ubuntu1.19.10.1_all.deb ...
Unpacking show-motd (3.6-0ubuntu1.19.10.1) ...
Setting up show-motd (3.6-0ubuntu1.19.10.1) ...
root at ee-motd-verify:~# logout
rbalint at yogi:~$ lxc shell ee-motd-verify
Welcome to Ubuntu 19.10 (GNU/Linux 5.0.0-37-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Wed Dec 18 13:44:08 UTC 2019
System load: 2.7 Processes: 28
Usage of /home: unknown Users logged in: 0
Memory usage: 0% IP address for eth0: 10.84.73.58
Swap usage: 100%
0 updates can be installed immediately.
0 of these updates are security updates.
This message is shown once once a day. To disable it please create the
/root/.hushlogin file.
root at ee-motd-verify:~# logout
rbalint at yogi:~$ lxc shell ee-motd-verify
root at ee-motd-verify:~#
** Tags removed: verification-needed verification-needed-eoan
** Tags added: verification-done verification-done-eoan
--
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 Committed
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