* Original to: Darrin Robinson (darrin@neighborhoodcable.com.au)
* One carbon copy
> Im wondering if it is possible to make Majordomo use Unix
> Groups as the basis for its list members. Eg. send to all unix
> users who are a member of unix group "dialup".
>
I'm a Majordomo newbie myself, so the only way I could do this would be to get
the usernames from /etc/groups and then subscribe them to the mailing list.
You could easily write a little script to "grep" for the desired group, "cut"
the usernames from the line and send appropriate "subscribe" commands to
majordomo. You could run this script from cron adjusting the frequency
according to the rate at which group membership changes on your system. You'd
have to "diff" the results of each run with the previous one to capture any
changes which you'd send off to majordomo as "subscribe" or "unsubscribe"
commands. Or, even simpler, "unsubscribe" all the previous users and
"subscribe" all the new ones each time you run your script. The script should
disable the existing list while it's running. I can only think of crude ways of
doing this using Majordomo's lists directory. The elegant solution would be to
lock majordomo using lock files but whether it will accept "subscribe" and
"unsubscribe" commands in the presence of these locks I don't know.
Regards,
Rob
-*- Carbon Copy recipients follow: -*-
darrin@neighborhoodcable.com.au
CC: Majordomo-users@GreatCircle.COM
|
|