Information at login

Tom H tomh0665 at gmail.com
Sun Nov 14 04:03:47 UTC 2010


On Sat, Nov 13, 2010 at 10:50 PM, David C. Curtis
<dave.c.curtis at gmail.com> wrote:
> On Fri, 2010-11-12 at 08:59 -0600, Smokin Chevy wrote:
>>
>> On my 10.04 servers it will show me when I ssh in that it has X number
>> of updates and if a reboot is currently required for a past update.
>> 10.10 does not.  How can I make it display that upon login.  I assume
>> it is probably in one of the . login files in the user's home.
>
> No, that's part of the motd which is controlled by pam. See 'man
> pam_motd' and /etc/pam.d/sshd.
>
> Do you have .hushlogin in your user dir?

The "number of updates" text comes from
"/etc/update-motd.d/90-updates-available".

Make sure that it exists and that its executable bit is set and then
make sure that the scripts/executables that it calls exist and have
their executable bit set.

Make sure that "/etc/init/mounted-varrun.conf" exists and that its
script generates "/var/run/motd".




More information about the ubuntu-users mailing list