Updating motd

This service is restricted to authorized users only. Unauthorized access will be fully investigated and reported to the appropriate law enforcement agencies.

-------------------------------------------------------------------------------- Last login: Sun Feb 3 2019 from 10.1.1.1 with a number that will place it in the order you'd like it displayed.

To summarise, I want the following, or similar command to run at login, prior to the motd being printed.

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-105-generic x86_64) 0 packages can be updated. Last login: Sun Dec 11 2016 from [email protected]:~$ Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-105-generic x86_64) Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty 0 packages can be updated.

_/____/ / __ \____ / /_ __/ / / / / / __ \/ / / / / / / /_/ / / / / / /_/ /_/ \____/_/ /_/_/\__, (_) /____/ ALERT! Your IP Address, Login Time, and Username have been noted and have been sent to the server administrator!

If you log in using the command line, however, you will see the message of the day as defined by the /etc/motd file.

Before continuing, remember that you can get back to this display by pressing Ctrl Alt F7.

The leading two digit number (00 to 99) will determine where the file is alphabetically, and thereby where it will be in the order of items displayed.

Lower numbers like 00 or 10 will be displayed first but will scroll up as subsequent files are processed and their output is displayed.

Leave a Reply