How Do I Delete My MOTD Message

Hi

Everytime I log into my VPS via SSH,
I see this long message:


Using username
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-50-generic x86_64)

17 packages can be updated.
17 updates are security updates.

Last login:


I would really like to delete it, or at least most of it,
and maybe selectively leave some small important part
(e.g. the "17 packages can be updated." line)

How do I do it?

Thank you

6 Replies

There's two ways to go about it. You can either edit /etc/motd with your text editor of choice, or use the Ubuntu-provided UpdateMotd script.

If you just want to make it a simple message or leave it blank, I'd say editing the file directly is the easier way to do it.

Thank you very much mjones

If I am in ~, and then cd ../etc/,
there is no motd file there..

I am on Ubuntu 18.04.4,
maybe it is located somewhere else?

This is about the most needlessly-complicated subject in every (recent) Linux I've ever encountered. Ubuntu makes it even more complicated because they don't want you to disable the advertising they push at you. See here:

https://ownyourbits.com/2017/04/05/customize-your-motd-login-message-in-debian-and-ubuntu/

-- sw

Ubuntu makes it even more complicated because they don't want you to disable the advertising they push at you.

You're right.

Thank you for the link,
it seems to have more updated info,
yet even that did not help..

The article is from 2017, and it seems Ubuntu changed it again.

I will try to ask in an Ubuntu forum, for instructions for my Ubuntu version..

Thank you

Maybe this will be more useful:

https://linuxconfig.org/how-to-change-welcome-message-motd-on-ubuntu-18-04-server

I switched from Ubuntu to Debian precisely because of crap like this (not that Debian makes it any easier but at least they don't push advertising at you).

-- sw

Thank you.

Maybe I will try Debian too..

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct