update-motd not updating /etc/motd after LTS upgrade

Helmut Schneider jumper99 at gmx.de
Thu Jun 7 22:47:58 UTC 2012


Tom H wrote:

> On Thu, Jun 7, 2012 at 6:05 PM, Helmut Schneider <jumper99 at gmx.de>
> wrote:
> > compdoc wrote:
> > 
> >> and then find out why /var/run/motd is not being generated
> > 
> > That's why I'm here. ;)
> 
> for motd to be displayed at boot?

Hm, only at boot?! No. Or?! Because I meanwhile found out that
/var/run/motd *is* created after a reboot but *is not* after a
(remote-)login (via ssh):

helmut at mail:~$ ls -la /var/run/motd
-rw-r--r-- 1 root root 1736 Jun  8 00:32 /var/run/motd
helmut at mail:~$ last -6R
helmut   pts/0        Fri Jun  8 00:41   still logged in
root     pts/0        Fri Jun  8 00:41 - 00:41  (00:00)
root     pts/0        Fri Jun  8 00:40 - 00:41  (00:00)
helmut   pts/0        Fri Jun  8 00:39 - 00:40  (00:01)
helmut   pts/0        Fri Jun  8 00:34 - 00:37  (00:03)
reboot   system boot  Fri Jun  8 00:32 - 00:43  (00:10)

wtmp begins Tue Jan  3 13:29:48 2012
helmut at mail:~$

At least on 10.04 /var/run/motd is created upon each logon.





More information about the ubuntu-users mailing list