View Single Post
  #3   (View Single Post)  
Old 14th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

Wall is cool and all, but what if the user isn't logged in? They won't get the message.

I have two ideas that are possible (but not necessarily practical).

I can:
1) Write the "email" directly to each file in /var/mail, which will effectively "email" every local user. However, even though I am "r00t" and system administrator and all, I don't want to feel creepy about "emailing" everyone, and while all I'm doing is appending a few lines to their mail files, it still doesn't seem responsible of me.

2) I can write a script to run via cron every so often that pulls a list from the passwd file and separates out only the necessary users (all users will have a range of valid UID's), and append that list to an alias in /etc/mail/aliases, then run postalias to update the aliases db.

I was really hoping there was some dark secret that I didn't know of, like "local@domain.tld" would deliver to all local users on the system.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote