[Bug 1855092] [NEW] [SRU] Please set MOTD_SHOWN=pam when MOTD was shown
Balint Reczey
balint.reczey at canonical.com
Wed Dec 4 11:23:00 UTC 2019
Public bug reported:
[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 in update-motd is creating a snippet in /etc/profile.d which shows MOTD, but only if UPDATE_MOTD is not set, to avoid printing MOTD twice.
[Test Case]
* Log in to the system, where PAM prints the MOTD.
* After seeing the MOTD observe MOTD_SHOWN set:
$ echo $MOTD_SHOWN
pam
$
[Regression Potential]
* The fix is simple thus i is unlikely to see any regression due to bad implementation.
* The newly set environment variable may interact with existing software, but this variable seems to be not used:
https://codesearch.debian.net/search?q=MOTD_SHOWN&literal=1
** Affects: pam (Ubuntu)
Importance: Undecided
Assignee: Balint Reczey (rbalint)
Status: In Progress
** Changed in: pam (Ubuntu)
Assignee: (unassigned) => Balint Reczey (rbalint)
** Changed in: pam (Ubuntu)
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pam in Ubuntu.
https://bugs.launchpad.net/bugs/1855092
Title:
[SRU] Please set MOTD_SHOWN=pam when MOTD was shown
Status in pam package in Ubuntu:
In Progress
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 in update-motd is creating a snippet in /etc/profile.d which shows MOTD, but only if UPDATE_MOTD is not set, to avoid printing MOTD twice.
[Test Case]
* Log in to the system, where PAM prints the MOTD.
* After seeing the MOTD observe MOTD_SHOWN set:
$ echo $MOTD_SHOWN
pam
$
[Regression Potential]
* The fix is simple thus i is unlikely to see any regression due to bad implementation.
* The newly set environment variable may interact with existing software, but this variable seems to be not used:
https://codesearch.debian.net/search?q=MOTD_SHOWN&literal=1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/1855092/+subscriptions
More information about the foundations-bugs
mailing list