Great Circle Associates Majordomo-Users
(November 2001)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Unix groups
From: rborland <rborland @ healthnet . zw>
Date: Fri, 16 Nov 2001 11:55:01 +0200
To: Majordomo-users @ GreatCircle . COM
In-reply-to: <4259272134@neighborhoodcable.com.au>


 * 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


Indexed By Date Previous: Re: restrict_post
From: Daniel Liston <dliston@netscape.com>
Next: Digest problems
From: Donna <mirator@educationalfreedom.com>
Indexed By Thread Previous: Re: Unix groups
From: Daniel Liston <dliston@netscape.com>
Next: Where are List Defaults?
From: "Jim Hermann" <hostmaster@uuism.net>

Google
 
Search Internet Search www.greatcircle.com