Questions tagged [motd]

A "message of the day" (motd) is a greeting message displayed after a successful login, just before a login shell is executed.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
317 views

MOTD not displayed after installing openssh from source

On Debian Wheezy the default openssh server package displays the motd from /etc/motd. When i compile it from source (openssh-6.0p1) it won't display the motd anymore after an ssh login. Configure ...
2
votes
0answers
453 views

How to change the motd on a Linux distribution that has no /etc/motd ?

I have seen a simple tutorial on how to put ascii art in the /etc/motd in order to show it each time the PC starts as the message of the day. Unfortunately Linux Mint Rebecca does not have a /etc/motd....
2
votes
0answers
1k views

Including pending update list in motd

How would you include the list and / or count of pending updates in the welcome banner? Eg. username: User password: ***** Hi 'User', welcome on 'localhost' There are 8 pending updates, you need to ...
1
vote
0answers
87 views

How to properly escape the need for sudo needing a password in a bash script

Issue I'm trying to have a dynamic MOTD (message of the day, /etc/motd) and in order to edit the file I need to run sudo. Further, I'm having /etc/profile call a python script that writes to /etc/...
1
vote
1answer
165 views

motd for each ip address is not working

In Ubuntu, I added file under /etc/update-motd.d/ #!/bin/bash IP=$(echo $SSH_CONNECTION | cut -d ' ' -f 1) if [ "$IP" = 172.16.20.10 ]; then printf "\nHi Frank\n" elif [ "$IP" = 172.16.20....
1
vote
1answer
768 views

Why won't MOTD display output from a Python script it calls outside of /etc/update-motd.d/ unless it's in this directory?

The Situation We're running a headless Ubuntu 14.10 Server to fulfill various needs and tests. I was experimenting with changing the MOTD for SSH sessions via /etc/update-motd.d/ so as to display ...
0
votes
0answers
6 views

changing date format used by pam_lastlog.so

When I log in via ssh, the motd gets printed. Among other things: Last login: Mon Nov 4 06:53:02 2019 from 12.34.56.78 I believe thsi comes from the pam_lastlog.so as configured in /etc/pam.d/login:...
0
votes
1answer
323 views

shell script at ssh login screen

I want to run this command when there is an ssh login. The command is watch -n 5 'zen-cli getinfo | grep blocks' I have already added this line by doing this sudo crontab -e I added @reboot watch -...
0
votes
1answer
450 views

Displaying motd with Ubuntu 14

I'm trying to display on a motd user's detail (the user and the actual date) Here is the step i take so far: sudo nano /etc/update-motd.d/00-welcome #(script) #!/bin/sh echo "Welcome user: ${USER}...