I recently tried to modify the motd on my ubuntu 16.04 server machine. i went to the files located in /etc/update-motd.d/ and modified the 00-header script file to test if it was going to work.

I just added something like

printf " Welcome, $USER"

and after some time the motd was actually changed.

the problem is that now, even if i removed that printf and added a lot of fancy text in the other scripts, the motd is not changing at all. what can I do to manually update on the motd? Is there any way i could just force it?


1 Answer 1


You can force it via sudo run-parts /etc/update-motd.d/

  • 3
    This will not update the motd displayed while connecting to the server. This only shows what will be displayed when the update will happen.
    – samb
    Apr 5, 2019 at 12:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .