update-motd not updating /etc/motd after LTS upgrade
Marius Gedminas
marius at pov.lt
Thu Jun 7 22:25:04 UTC 2012
On Thu, Jun 07, 2012 at 07:18:06PM +0000, Helmut Schneider wrote:
> Hi,
>
> I have a few scripts within /etc/update-motd.d/, e.g.
>
> #!/bin/sh
> unset PATH
> /usr/bin/printf "%s\n%s\n\n" "Uptime/Load:" "$(/usr/bin/uptime)"
>
> While on 10.04 and on a fresh installation of 12.04 this script works
> fine, on two upgraded machines from 10.04 to 12.04 /etc/motd is not
> updated. If I remove /etc/motd (/var/run/motd) it is not even
> re-created at all.
>
> What can I futher check?
Your PAM configuration?
Executable scripts in /etc/update-motd.d/* are executed by
pam_motd(8) as the root user at each login, and this information
is concatenated in /var/run/motd. The order of script
execution is determined by the run-parts(8) --lsbsysinit option
(basically alphabetical order, with a few caveats).
-- http://manpages.ubuntu.com/manpages/precise/en/man5/update-motd.5.html
Marius Gedminas
--
I'll maintain that XML should never be used for something that is written by
humans, just as you shouldn't try to use it as a programming language, although
people have been so in love with XML that they've tried to do both.
-- Bruce Eckel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120608/4e144200/attachment.sig>
More information about the ubuntu-users
mailing list