Ask Your Question
2

Message of the Day (MOTD)

asked 2015-04-01 07:29:04 -0500

lsatenstein gravatar image

How do I get the contents of /etc/motd to appear on the login (greeter screen)? I have a Fedora system for the family. The logons on this system are: root, Leslie (dad), Aviva(mom), Allan,Laurie,Toby,Sage,Oren,Joshua Leslie logon is admin With message of the day, I can tell users before they login, that the system will be off line at a certain time, or leave a message for one or other sibling.

It was there until Gnome 3 came along. How to restore it?

A default empty motd file is /etc/motd

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-04-01 09:37:19 -0500

sideburns gravatar image

The man page for motd says that the contents of /etc/motd are displayed "after a successful login but just before it executes the login shell." All you should need to do is edit that file as root. Testing, it does not show up when you open a terminal, or use su -c to become root. It does, however, show up if you switch to a text console and log in. I don't know what happens when you log into a GUI, but it probably does what you need.

edit flag offensive delete link more
0

answered 2015-04-01 08:21:07 -0500

FranciscoD_ gravatar image

I know xmessage works on Gnome 3. Is that what you were using before?

edit flag offensive delete link more

Comments

Neither of the above help me. I was hoping that the message would appear before any user logs into the system.

If I am running a job and I did a "switch user", to enable that job to run unmolested, I would like to be able to post a message on the login screen to advise users.

lsatenstein gravatar imagelsatenstein ( 2015-10-01 09:56:59 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-01 07:29:04 -0500

Seen: 796 times

Last updated: Apr 01 '15