On Sun, 15 Jul 2001, Eugene O'Leary wrote:
> Can anybody tell me which file I need to edit in order to insert a "Message
> of the day", and get it to appear, when I telnet to my Linux box from
> another computer. At the moment I am just getting "Welcome to
> localhost.localdomain" and details of my system.
there are 2 files (well, 3)
1. /etc/issue and /etc/issue.net
are messages to be displayed /before/ the login prompt. issue.net is
read by telnet. (sshd won't display it).
NB: on RedHat these 2 files are overwritten on boot by
/etc/rc.d/rc.local. so if you make changes to issue, edit rc.local as
well and comment out the bits where the script echoes to issue.
2. /etc/motd (== Message of the Day)
a message to be displayed /after/ the user has succesfully logged in.
eg: login, telnet and sshd honour it.
>> Eugene O'Leary.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!