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
42
votes
2 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
  • 569
12
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?
3
votes
3 answers

Ubuntu Linux 12.10 Message of the Day

I've just made the transition to Ubuntu Linux 12.10 and I want to properly set up my first motd. I've run the following below and noticed that I only have one motd file instead of having a secondary file called motd.tail that most Ubuntu versions…
Dford.py
1
vote
3 answers

How to remove MOTD segment when no updates/upgrades?

When I log in to the terminal/via SSH, I see this message, where x is a number of updates: x packages can be updated. x updates are security updates. However, if the number to both is 0, I'd prefer not to see the message. I've tried modifying the…
Ben
  • 211
  • 2
  • 10
1
vote
0 answers

Message of the Day stopped working

I'm running 22.04.1 LTS server. After a reboot today, the message of the day stopped working (the system statistics you see when you ssh into the machine). Now, all I see is the record of the last login. I haven't edited any configuration files,…
0
votes
0 answers

Can I give jailed users a different Welcome Message upon login?

I've successfully set up a jailed user using jailkit and everything is working fine. However, I would like to provide the user with a different welcome message upon login, and keep my own existing welcome message when I log in with root. I figured…
Karl S
  • 1
0
votes
0 answers

My motd script works using run-parts but no output when I log in via ssh

This is my 00-motd (-rwxr-xr-x) file: #!/usr/bin/env python3 DISK_A = '/dev/sda2' DISK_B = '/dev/sdb1' import locale locale.setlocale(locale.LC_TIME, 'pl_PL.UTF-8') # https://github.com/maxogden/cool-ascii-faces cool = [ u"( .-. )", u"(…