mail to all users on a system (from root)

Willie Viljoen will at unfoldings.net
Sun Apr 13 05:44:55 PDT 2003


On Sunday 13 April 2003 14:32, someone, possibly Aslak Evang, typed:
> I've searched for ways for root to email all users on a system. The only
> easy solution I found included making a shellscript and setting it as an
> alias for "everybody". Problem was that in the script you had to insert
> all your users manually.
> Does anybody know of other methods for sending announcements to all
> users on a system? Could have done it with MOTD but few of them actually
> log-in. Most just read mail.
>
> suggestions?
>
> - Aslak

If all of the users you want to get the announcement have home directories, 
there's a really easy way to do this. Write a shell script that makes a 
list of users from the output of ls /home

Will

-- 
Willie Viljoen
Freelance IT Consultant

214 Paul Kruger Avenue, Universitas
Bloemfontein
9321
South Africa

+27 51 522 15 60
+27 51 522 44 36 (after hours)
+27 82 404 03 27 (mobile)

will at unfoldings.net


More information about the freebsd-questions mailing list