Questions tagged [motd]
The term `motd` means "Message of the day"
86
questions
70
votes
4
answers
86k
views
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 ...
46
votes
4
answers
18k
views
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 /...
43
votes
3
answers
25k
views
"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 contains:
...
31
votes
7
answers
52k
views
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?
31
votes
6
answers
13k
views
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 ...
24
votes
3
answers
31k
views
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 ...
16
votes
2
answers
5k
views
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....
14
votes
4
answers
14k
views
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....
14
votes
3
answers
16k
views
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 ...
13
votes
1
answer
33k
views
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 ...
13
votes
2
answers
7k
views
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 ...
12
votes
4
answers
27k
views
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 ...
9
votes
3
answers
2k
views
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)
* ...
8
votes
1
answer
9k
views
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 ...
7
votes
1
answer
2k
views
Ubuntu 12.04 EOL appears in motd after release upgrade to 14.04 [duplicate]
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 ...
7
votes
2
answers
3k
views
MOTD is updated very rarely
I understand that pam_motd updates the MOTD upon login, but sometimes MOTD just doesn't get updated for days and I'm puzzled what might be the reason. I'd like to add uptime and who outputs to the ...
7
votes
2
answers
1k
views
How to properly invoke motd for SSH connections with PAM disabled
I have configured a nice motd message that shows me lots of relevant infos when I login to my VPS via SSH.
As password authentication is disabled in sshd_config I would also prefer to disable PAM as ...
6
votes
1
answer
4k
views
Who is telling me "You have mail"
On a server running Ubuntu 14.04 I see You have new mail in the motd every time I log in via SSH.
Q: Who is telling me this?
Mail does not find anything, and I do not expect any mails on this ...
5
votes
1
answer
4k
views
motd message doesn't update
I recently tried to modify the motd on my ubuntu 16.04 server machine. i went to the files located in /etc/update-motd.d/ and modified the 00-header script file to test if it was going to work.
I ...
5
votes
2
answers
2k
views
After do-release-upgrade to 13.04 from 12.10 I still get informed about 13.04 on log-in via MOTD
This was an issue with moving to 12.10 it appears to have resurfaced now with 13.04 i.e. post upgrade to 13.04 you still get the MOTD to upgrade.
I've tried the previous list of fixes for the same ...
4
votes
2
answers
9k
views
motd displayed twice
So here's the deal. I've created /etc/motd.tail as suggested by Ubuntu documentation which should append STATIC content to /etc/motd . However as well as this work, it displays the MOTD TWICE when I ...
4
votes
2
answers
5k
views
Available updates not shown when login to terminal Ubuntu 14.04
When I login to my server terminal over ssh I just see:
Using username "username".
Ubuntu 14.04.1 LTS
Authenticating with public key "mykey" from agent
Last login: Wed Oct 22 09:17:02 2014 from xxx....
3
votes
3
answers
8k
views
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 ...
3
votes
2
answers
785
views
How to change the login notice on a custom shell?
I was trying to setup a custom shell for a temp user.
sudo usermod --shell /home/nemo/a temp
The contents of a:
#!/bin/bash
echo "Test"
Unfortunately, on trying to login as user temp, I see this:
...
3
votes
2
answers
3k
views
Why does MOTD and "landscape-sysinfo" show different disk usage to "df"?
I have several drives on my server mounted separately. They are getting close to full. When I ssh to my server, motd reports disk usage, for example:
=> /home is using 89.3% of 916.89GB
But if I ...
3
votes
1
answer
2k
views
MOTD display updates can be applied though none is actually available
A few days ago I upgrade my home server from ubuntu 21.04 to 21.10 using do-release-upgrade.
The install brokes during the process, but I think I was able to repair (thanks to other posts from here).
...
3
votes
1
answer
548
views
How do I disable the "Would you like to set up Livepatch now" message at login?
I have some LTSP clients with Ubuntu 20.04. Whenever login, there is always a prompt "Would you like to set up Livepatch now". We would not like to set up Livepatch. Any command to ...
3
votes
1
answer
892
views
Why does the number of upgradable packages differ according to MOTD and apt list --upgradable?
First I do sudo apt-get update.
Now, when I get the MOTD (Message of the Day) by doing /usr/lib/update-notifier/apt-check --human-readable, the output I get is:
18 updates can be applied immediately.
...
3
votes
1
answer
6k
views
MOTD - show memory usage, 50-landscape-sysinfo without swap info
I would like to display the MOTD without swap info, because my machine does not have swap.
I have found the link ls /etc/update-motd.d/50-landscape-sysinfo which points to the file /usr/bin/...
3
votes
1
answer
6k
views
MOTD not showing on 18.04
I'm attempting to get the MOTD to appear on login. Got an old box recently updated and running 18.04.4 LTS. The default MOTD scripts all exist in /etc/update-motd.d/, are set to +x and run ...
3
votes
1
answer
961
views
Failed to restart motd-news.service
I am receiving a message saying Failed to restart motd-news.service when starting up ubuntu 16.04.6 on a vagrant box (Homestead).
Trying to get the message go away, but not sure how to do so. Cannot ...
3
votes
1
answer
3k
views
run-parts with and without "--lsbsysinit" to update motd
I am trying to edit my motd, so I kept to the best practice described in the man pages (update-motd - dynamic MOTD generation )
I added my script to /etc/update-motd.d/, named it 20-HDD-info and made ...
3
votes
2
answers
2k
views
Environment variables in motd not working
I’m trying to send user login logs to my email with the users name and location. After making the script I found that environment variables can’t run in this script, I’m hoping that someone out there ...
3
votes
0
answers
4k
views
update-motd not updating on Ubuntu 20.04
I'm having trouble getting any output when logging in via SSH.
I removed all scripts under /etc/update-motd.d/ and I installed my own bash scripts.
Before
➜ ~ ls -la /etc/update-motd.d/
total 64
...
3
votes
0
answers
449
views
Disable all services in Ubuntu 16.04 (and later) causing any internet connection
Given that an IOT device running Ubuntu 16.04, I would like to restrict network or internet consumption. Thus, I am looking for two things here.
Identify (& Stop) all ubuntu services causing ...
2
votes
3
answers
7k
views
Enable MOTD message on WSL and WSL2 for Windows 10?
I installed update-motd package on my wsl2, but how do I activate it so it shows the message every time I open a new terminal session/tab? What do I do next?
2
votes
3
answers
3k
views
Message of the day exited with return code 2
I have Ubuntu 18.04 and Message of the day does not work anymore.
When I login no information is shown.
When I run
run-parts /etc/update-motd.d/
I get an error
run-parts: /etc/update-motd.d//50-...
2
votes
1
answer
5k
views
Message of the day at /etc/motd.tail not working
As detailed on AskUbuntu (multiple threads), I am trying to change my message of the day.
This is my edit:
luis@Terminus:/etc$ cat /etc/motd.tail
____ _ _ ____
/ ...
2
votes
5
answers
5k
views
Update notifier doesn't work [cache issue]
The update notifier doesn't notify me when updates are available. Sometime ago I had a similar problem and this worked:
sudo rm /var/lib/update-notifier/dpkg-run-stamp
sudo rm /var/lib/update-...
2
votes
1
answer
846
views
What updates /var/cache/ubuntu-advantage-tools/ubuntu-advantage-status.cache?
After logging into 18.04.1 LTS, motd shows (among other things):
- Livepatch server check failed.
Digging into motd I see that this message is generated by a script residing in
/etc/update-motd.d/...
2
votes
1
answer
1k
views
Custom motd in /etc/update-motd.d/20-fortune-cowsay only working partially
I have tried to create a custom motd on Ubuntu 16.04 LTS. I've found that there is a /etc/update-motd.d directory with a few files. I've seen the pattern of [00-99]-[name]So I've added my own file ...
2
votes
0
answers
48
views
How to enable /etc/update-motd.d/ messages to show on SSH login
I have two servers running Ubuntu 22.04.4 LTS. One of them (let's call it host1) I will be greeted with the motd upon logging in via SSH as shown below.
However, on the second one (host2) this will ...
2
votes
0
answers
110
views
Custom modt script prevents me from logging in on server. Am I doing something wrong?
I am running Ubuntu 22.04 LTS Server on an old computer I have, and I would like to have a custom script be run when I login to print useful information.
I have the script (linked below), placed it in ...
2
votes
2
answers
4k
views
ssh welcome message is suddenly gone
When I log in into my ubuntu server via ssh the only message that I get is the last login
Last login: Sun Oct 30 18:26:33 2022 from xxx.xxx.xxx.xx
However, previously I got
Welcome to Ubuntu 22.04.1 ...
2
votes
0
answers
786
views
Update-motd.d does not update on ssh login
This following message shows up whenever I login via ssh.
System load: 0.23 Processes: 163
Usage of /: 24.1% of 58.39GB Users logged in: 0
Memory usage: 27% ...
2
votes
3
answers
4k
views
How to display motd in gnome-terminal?
I know that motd is displayed only in login shell console and not for gnome-terminal. But is there a way I can display it each time I launch gnome terminal with ALT+Ctrl+T?
1
vote
3
answers
371
views
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 ...
1
vote
1
answer
513
views
Motd temperature reading is incorrect after processor change
I recently changed my CPU and MOBO to i5-12400 installed in the Gigabyte B660M DS3H DD4 motherboard. Since then I have been having wrong motd Temperature readings:
Welcome to Ubuntu 21.10 (GNU/Linux 5....
1
vote
3
answers
7k
views
MOTD printing twice with "PrintMotd no"
I looked at other posts on here but none seemed to help. Whether I set PrintMotd to "no" or "yes" in the etc/ssh/ directory under sshd_config as long as I have a "motd" file under in etc/ it gets ...
1
vote
1
answer
744
views
How to change the motd date format
Every time I ssh into my server the server prints the last login date and time. But I don't like the format. For ex:
Last login: Sun Jan 31 12:12:13 2016 from 127.0.0.1
I want to to disable the ...