When I login to my server terminal over ssh I just see:
Using username "username".
Ubuntu 14.04.1 LTS
Authenticating with public key "mykey" from agent
Last login: Wed Oct 22 09:17:02 2014 from xxx.xxx.xxx.x
The login should normaly tell me something like this:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-33-generic x86_64)
* Documentation: https://help.ubuntu.com/
6 packages can be updated.
0 updates are security updates.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Why is that, how an where should I change settings so that available updates are shown when logging to terminal shell?
This update notification was working OK but it just stopped a week ago or so. Maybe I did some stupid change that I am not aware of.
I hope someone can help me about this issue.
/var/run/motdcontains nothing? Also can you provide the output ofgrep motd /etc/pam.d/*? – chaos Oct 22 '14 at 21:09/var/run/motd? – chaos Oct 22 '14 at 22:00/usr/lib/update-notifier/update-motd-updates-availableIt's the script that checks the updates – chaos Oct 22 '14 at 22:14/usr/lib/update-notifier/update-motd-updates-availablecommand should produce the output. When there is no output you should debug that script. – chaos Oct 22 '14 at 22:54/usr/lib/update-notifier/update-motd-updates-available --forceSo it must execute that line. – chaos Oct 23 '14 at 12:420 packages can be updated. 0 updates are security updates. But when I log out and login again the updates are not shown. Will see what will happen when I reboot the server....
– Marko Ambrožič Oct 23 '14 at 16:25motdoption value in/etc/pam.d/sshdfrom/run/motd.dynamicto/var/run/motd? I was able to get my motd updating just by removing thenoupdateoption. – wachr Apr 05 '15 at 19:05