I've run into an issue trying to set up a little bit of ASCII art to display upon connection and on logout.
I can do this for one user with .bashrc and with .bash_logout, and set a login MOTD by creating /etc/profile.d/motd.sh, but haven't found a way to set a universal logout MOTD. How can I do this?
I am running CentOS 6.
motd
is a message ("message of the day", thusmotd
), that is used for announces such as "This machine will be down for scheduled maintenance on Friday between 12:00 and 14:00"..bash_logout
is a script. You can set a.bash_logout
script for new users by adding it to/etc/skel
, and you can add commands to.bash_logout
for existing users with a script. But (1) it's pointless to print messages from.bash_logout
(since the shell is going away...), and.bash_logout
only applies to people who hasbash
as their shell.