There is another question which covers some suggestions for changing the motd on modern ubuntu systems which do not have /etc/motd.
However, the other question does not ask (or tell) where the current Ubuntu MOTD is being stored. Where is it?
There is another question which covers some suggestions for changing the motd on modern ubuntu systems which do not have /etc/motd.
However, the other question does not ask (or tell) where the current Ubuntu MOTD is being stored. Where is it?
Traditionally , Unix
motd
would live in/etc/motd
directory.RHEL still does that. Ubuntu on the other hand places login messages in/etc/update-motd.d/
directory.Each of these scripts is responsible for dynamically assembling the whole message and provide specific parts.
It is still , however, possible to create a custom message in /etc/motd and place it into
/etc/motd
. File itself doesn't exist, but you just have to create it.Here's how I tested it: