At 10:12 AM 7/8/2005, SWAPNIL wrote:
>I want to send one news to all users on my linux box.
>
>I had created some aliases for perticular groups using aliases file like
>group1: user1,user2,....
>
>but now i want to send mail to all users except system users like ftp,
>apache, root, daemon etc.
Typically all these system users have uid <= 100
awk -F: '$3 > 100 { print $1 }' /etc/passwd > /etc/mail/allusers
And in /etc/mail/aliases -
allusers: :include:/etc/mail/allusers
srs
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/