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

learn more… | top users | synonyms

3
votes
1answer
35 views

ssh message after login but before password

Is it possible to make a message appear for each user after he entered his login but before he needs to enter his password? I looked at motd and issue files, but I could not set it up, how I want. ...
2
votes
2answers
55 views

check “newness” / “is-read” of /var/spool/mail/$USER like pam_mail for custom motd script

How can I check with bash or python (preferred) if there are some unread mails in /var/spool/mail/$USER like pam_mail does? I'd like to use this for my own custom motd script, motd.dynamic
2
votes
1answer
28 views

Show shell greeter only on initial login

Is there any way to show a greeter (motd kind of thing) only on initial login, and not when you do sudo su? Here's my current .bashrc: #!/bin/bash # # ~/.bashrc # # If not running interactively, ...
2
votes
0answers
54 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 ...
1
vote
1answer
117 views

When login into terminal, display custom text

When I loggin to my linux system through PuTTY, I'm getting this below text.Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic i686) * Documentation: https://help.ubuntu.com/ System ...
4
votes
2answers
196 views

Updating MOTD on login

I've been tinkering with my CentOS server login procedure, I want to have my MOTD update using the linux_logo program. I've already tried doing this in a few ways, but didn't get the desired effect. I ...
0
votes
1answer
199 views

Faillog - unsuccessful login count in Motd

I wish to include a count of failed login attempts whenever a user logs in. I've created: /usr/local/bin/dynmotd which contains #!/bin/bash FAILLOG=`faillog -u` echo -e " $FAILLOG " and ...
7
votes
1answer
1k views

How do I use colors in the MOTD?

I edited the default /etc/update-motd.d/00-header, adding some color to make it easier to read: printf "Welcome to \e[1;34m%s\e[0m \e[2m(%s %s %s)\e[0m\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" ...
0
votes
2answers
2k views

Change motd value in UNIX Operating System

I need to change the value of MOTD using a script but I do not know how I should start. Am attaching sample MOTD if anyone can help.             ...
6
votes
3answers
1k views

How to prevent “Last Login:” message from showing up when using sftp?

In Ubuntu GNU/Linux 12.04, I have a user johndoe that is part of an sftponly group, set up to sftp to a chroot jail using Subsystem sftp internal-sftp Match Group sftponly ChrootDirectory %h ...
2
votes
2answers
872 views

Update MOTD at ssh login on Debian

What's the most clean way to display a different quote from a file (line-seperated) as MOTD on every SSH login on Debian? In other words, how can I trigger a MOTD update on SSH login?
2
votes
0answers
319 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
1answer
706 views

upgraded to Ubuntu 13.04 Server, do-release-upgrade still shows

I upgraded my server to Ubuntu 13.04 Server a while ago. However, the notice that tells me there's a New Release '13.04' available. Run 'do-release-upgrade' to upgrade to it. still shows. Obviously, ...
1
vote
4answers
1k views

Get default ubuntu motd in fish shell

I would like to have Ubuntu's MOTD in the fish shell. Ubuntu's default is as follows: That is essentially what I would like to see when open up my terminal (terminator, which loads fishfish) As ...
4
votes
2answers
568 views

/etc/motd is not displayed when a named pipe?

Running Gentoo 3.4.0 Having recently heard about the /etc/motd file, i tried to have it display random cowsay fortunes. I wrote some random bash script to act as a daemon, feeding the /etc/motd as a ...
1
vote
1answer
420 views

How to update MOTD regularly?

Every week there's a new work log/to-do list at work. There's a todo script which can be used to extract my own to-do items from that. Currently this is called in ~/.bash_aliases_local, which is ...
4
votes
2answers
4k views

Motd not changing

My /etc/motd file is showing duplicate messages. When I edit it manual, it keeps returning to the messed up version whenever a user logs in. How do I stop this? I'm using Ubuntu 10.04
3
votes
2answers
1k views

Motd doesn't show up

I'd like to set a custom motd ("message of the day") on my machine (currently Mac OS X 10.6.5 using Bash with Terminal.app). In /etc/ there was no motd file so I created one with some sample text. ...