[Bug 766827] Re: motd not updating
Tony Whitmore
766827 at bugs.launchpad.net
Fri May 27 21:22:51 UTC 2011
The information appears to be being generated twice - two sets of motd
headers are created. If one removes the contents of /etc/motd, saves,
logs out and logs back into the system via SSH the contents of /etc/motd
are regenerated.
Linux azal 2.6.32-27-generic-pae #49-Ubuntu SMP Thu Dec 2 00:07:52 UTC 2010 i686 GNU/Linux
Ubuntu 10.04.2 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
System information as of Fri May 27 22:19:26 BST 2011
System load: 0.23 Processes: 147
Usage of /home: 45.7% of 2.69TB Users logged in: 0
Memory usage: 19% IP address for eth0: 192.168.1.68
Swap usage: 0%
Graph this data and manage this system at
https://landscape.canonical.com/
*** System restart required ***
Ubuntu 10.04.2 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
System information as of Wed Apr 20 08:15:04 BST 2011
System load: 0.0 Processes: 149
Usage of /home: 41.8% of 2.69TB Users logged in: 0
Memory usage: 18% IP address for eth0: 192.168.1.68
Swap usage: 0%
Graph this data and manage this system at
https://landscape.canonical.com/
*** System restart required ***
--
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/766827
Title:
motd not updating
Status in “pam” package in Ubuntu:
Confirmed
Bug description:
Following recent updates, the /var/run/motd file is being updated
properly, but the data contained within is not. This refers
specifically to the data udpated by the following scripts:
/usr/lib/update-notifier/update-motd-cpu-checker
/usr/lib/update-notifier/update-motd-reboot-required
/usr/lib/update-notifier/update-motd-updates-available
I have verified this behaviour on several of our machines, all of
which are running Ubuntu Server 10.04.
I've manually run /usr/lib/update-notifier/apt-check --human-readable
(called from /usr/lib/update-notifier/update-motd-updates-available)
and it outputs accurate data:
it at milpat:~$ /usr/lib/update-notifier/apt-check --human-readable
0 packages can be updated.
0 updates are security updates.
Running the /usr/lib/update-notifier/update-motd-updates-available
script itself returns the appropriate data:
it at milpat:~$ sudo /usr/lib/update-notifier/update-motd-updates-available
0 packages can be updated.
0 updates are security updates.
it at milpat:~$
But even after running the script manually, the motd file does not
contain the new data:
dmcgarry at emigre:~/devel/goofalicious/src/Goofalicious$ ssh milpat
Linux milpat 2.6.32-4-pve #1 SMP Thu Oct 21 09:35:29 CEST 2010 x86_64 GNU/Linux
Ubuntu 10.04.2 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
8 packages can be updated.
2 updates are security updates.
You have mail.
Last login: Wed Apr 20 16:13:14 2011 from xxx.xxx.xxx.xxx
it at milpat:~$
REFERENCE SYSTEM INFO:
it at milpat:~$ lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
More information about the foundations-bugs
mailing list