I need to know if it's possible to setup dynamic motd messages on Linux servers which should display the snippets of current events happening in the world when someone login. If its possible please do let me know how to do it.


motd is in /etc/motd. Feel free to change it.


You have to use pam_motd.

Basically, you only have to create /etc/update-motd.d and put scripts into that directory of the form 00scriptname (no extension).

The output of those scripts will be presented upon login, and the scripts can generate dynamic content

You can follow this guide


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.