pam_motd: assume update-motd responsibilities
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland | ||
landscape-client (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland | ||
pam (Ubuntu) |
Fix Released
|
Medium
|
Steve Langasek | ||
update-manager (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland | ||
update-motd (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland | ||
update-notifier (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
The pam_motd module could (should?) render the update-motd package obsolete. Furthermore, it should also handle the printing (or non-printing) of the legal warranty disclaimer text.
Previously:
* update-motd-1.0 was a set of cronjobs -- not ideal, as the cronjobs were clumsy, and used system resources unnecessarily
* update-motd-2.0 was a daemon -- easier to manage, but also required an init script, and consumed system resources in the background
* update-motd-3.0 used /etc/profile.d -- only ran on login, however, this was printed unnecessarily sometimes in scripts and automation using su.
Optimally, pam_motd would use the dynamic framework pioneered by update-motd.
Basically, the proposed changes would:
a) call 'run-parts /etc/update-motd.d > /var/run/motd', such that the dynamic update-motd scripts are executed and concatenated to file
b) display the legal text only if necessary (and set a flag such that it's not displayed again)
As such, we should benefit from:
a) /etc/motd leveraging the dynamic nature instituted by update-motd
b) a performant system, whereby these scripts are *only* run at login
c) the data in /etc/motd -> /var/run/motd is as current as the last login (for scripts and such that might consume this data)
:-Dustin
Changed in landscape-client (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in update-manager (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in update-notifier (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in landscape-client (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in update-manager (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in update-notifier (Ubuntu): | |
milestone: | none → karmic-alpha-3 |
Changed in landscape-client (Ubuntu): | |
milestone: | none → karmic-alpha-3 |
Changed in update-manager (Ubuntu): | |
milestone: | none → karmic-alpha-3 |
Marking as affecting update-motd, as update-motd will be obsoleted and removed once pam has this functionality.
:-Dustin