Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to replace the default motd for AWS Linux 2023

How do I replace the default motd (message-of-the-day) for AWS Linux 2023?

I modified /etc/motd with a new message, but the default text-characters-bird thingy still shows when I login with SSH.

like image 811
ByteSlinger Avatar asked Oct 22 '25 21:10

ByteSlinger


1 Answers

Evidently, in this flavor of Linux (AWS Linux 2023), the motd comes from /etc/motd AND whatever files are in the /usr/lib/motd.d directory. The default is /usr/lib/motd.d/30-banner. You can delete that file and only the /etc/motd contents will be displayed when logging in.

For safety I created a /usr/lib/motd.d/save directory and moved 30-banner to that save directory. Never know if I may want it back, like if I use this instance to launch another.

like image 135
ByteSlinger Avatar answered Oct 26 '25 04:10

ByteSlinger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!