Hi Bill

I don't believe there is a built in way. However maintaining the list is
not as hard as it may seem (thanks to the abundance of nifty unix tools). 

for each group list you want, create an alias in your aliases file like so

group_alias:    :include:/etc/mail/group.lst

the following will create the list of users in a group

#!/bin/sh
#
# get's group members
# usage: getMembers group_name  > /etc/mail/group.lst
#
grep `grep $1 /etc/group | cut -d: -f3` /etc/passwd | cut -d: -f1

create this script, and stick a call to it for each group list you want to
maintain in a cron job, (or a little wrapper script in say
/etc/cron.daily), and you have a self maintaining group mail list. Add
salt as needed.

hth
charles
p.s. look bash boys - no perl! (and typed with one hand - restless baby
in other) <grin>

On Thu, 13 Jan 2000, William B. Herman wrote:

> Is there anyway to send an email to a linux group (i.e. the wheel group)
> without creating an alias that points to each group member.  The users in
> this group change frequently so an alias would not be the ideal setup.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to