Questions tagged [motd]

The term motd means "Message of the day"

If you log into a terminal based system (RHEL, Ubuntu Server, etc...), you might notice some text before you are presented with you shell. That message is being controlled by the file /etc/motd.

This file can be edited at any time to display text to make sure people are aware of whats happening on the system.

You can also just append to the /etc/motd file by adding the following file named /etc/motd.tail. Once that file is added, you may append additional information to the original motd message.

86 questions
72
votes
4 answers

How to disable welcome message after SSH login?

I have changed /etc/issue.net, so I have set a "personal" message after typing a username in an SSH terminal. Now I am trying to change the welcome text after successful login. I have found a lot of posts about the /etc/motd file, but the part…
Terradon
  • 855
47
votes
4 answers

landscape-sysinfo.cache: Permission denied when I start Ubuntu 22.04 in WSL

I installed Ubuntu 22.04 on Windows 11 using WSL. I then moved it on another disk with the WSL commands (--export/--import). After moving it, the default user was root, so I added the below lines in /etc/wsl.conf: [user] default=numa Now in the…
45
votes
3 answers

"System restart required"...why? How can I get what triggered this notification to also show details?

Every so often, I'll SSH into a box with unattended-upgrades and be greeted with "** System restart required ***" with no additional information. My '/var/run/reboot-required.pkgs' file…
E. Diaz
  • 599
38
votes
6 answers

Inhibit ESM messages at login

I would like to inhibit the generation of the following messages when I ssh into my machine Expanded Security Maintenance for Applications is not enabled. Enable ESM Apps to receive additional future security updates. See https://ubuntu.com/esm or…
34
votes
7 answers

How do I disable the Message of the Day (MOTD) on Ubuntu 14.04?

I tried disabling the motd.dynamic in /var/run renaming the file, but did not work because the system recreates the file. Does anyone know disable it?
hdegenaro
  • 441
25
votes
3 answers

Persistent "disk will be checked..." in the message of the day (motd) even after reboot

I see that there are some other threads that mention this error, but I have tried the solutions with no luck. When I log into my 12.04 Server, I get the message: /dev/sdb1 will be checked for errors at next reboot /dev/sdc1 will be checked for…
dpbklyn
  • 865
17
votes
2 answers

How to disable the advertisements when sshing into an Ubuntu machine

When sshing into my machine, I see the following: Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.6-sound-29 x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: …
Ferrybig
  • 992
14
votes
1 answer

Where is motd on modern Ubuntu systems?

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?
14
votes
4 answers

How to disable release upgrade notification at terminal/TTY login (not the GUI pop-up)?

I have Ubuntu 12.04 LTS on one of my old laptop. Each time I login through TTY or SSH it says: Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.4.0-030400-generic i686) * Documentation: https://help.ubuntu.com/ New release '14.04.1 LTS' available. Run…
bfrgzju
  • 617
14
votes
3 answers

How to remove legal notice from MOTD / Banner for non-root users

Problem: The following text is shown for all non-root users when logging in via SSH: The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in…
13
votes
2 answers

ubuntu 20.04 notify-updates-outdated not found

My problem is that my file is lost! Where I can find it? Can I reinstall it (restore it) as part of a package? Which one? I get the following message: /etc/update-motd.d/90-updates available exited with return code…
12
votes
4 answers

No MOTD on Ubuntu 14.04...?

I recently did a fresh install of Ubuntu 14.04. When I SSH, there is no MOTD (and yes, I have the appropriate command set in sshd_config). I read a bunch of tutorials about setting up MOTD, but I realized that while I have /etc/update-motd.d, there…
alxlvt
  • 253
9
votes
3 answers

SSH welcome message on 17.04 shows notice about 12.04

I just did a do-release-upgrade going from Ubuntu 16.04 to 17.04. However, now when I login via SSH I have the following message Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-20-generic x86_64) * Documentation: https://help.ubuntu.com * Management:…
David
  • 103
8
votes
1 answer

Set user- or group-specific MOTD in SSH

I would like to disable or change the MOTD shown on SSH login on a per-group/per-user basis. This question on SuperUser has an answer stating that I can use Match blocks in sshd_config. However, man sshd_config states: Match ... …
muru
  • 207,228
7
votes
1 answer

Ubuntu 12.04 EOL appears in motd after release upgrade to 14.04

I just performed a do-release-upgrade to bring a server from 12.04 to 14.04. The server rebooted at the end of the upgrade. However, when I log in, I am greeted by a contradictory MotD: Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-117-generic…
JamesCW
  • 259
1
2 3 4 5 6