Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have an Ubuntu server running at sandbox.plushu.org - if you add your key at , you can connect to the server as . You can reset the server by pressing the reset button on .

I have a custom time-sensitive MOTD on this server. The problem that I'm seeing is that this MOTD, when regenerated (via /etc/update-motd/*) at login, is not displayed until the next login. The first time you log in, you will see the MOTD as generated at boot: the next time you log in, you will see the MOTD as generated the last time you logged in.

What is causing this behavior? How can it be fixed so that, on logging in, the MOTD is generated, then displayed?

1 Answer

This behaviour is configured in /etc/pam.d/sshd:

session optional pam_motd.so motd=/run/motd.dynamic noupdate

Try to remove "noupdate" keyword.

As described in - it means..

Don't run the scripts in /etc/update-motd.d to refresh the motd file.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy