Skip to Content.
Sympa Menu

en - Re: [en@sympa] privileged owner via CLI? (6.2.68)

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: David Carter <address@concealed>
  • To: Amos <address@concealed>, address@concealed
  • Subject: Re: [en@sympa] privileged owner via CLI? (6.2.68)
  • Date: Fri, 2 Sep 2022 12:10:20 +0100

On 29/08/2022 21:13, Amos wrote:
|Is it possible to add a privileged owner via CLI?  I don't see the option, but I'm not sure if I'm overlooking it. |

Sympa 6.2.68 now has "sympa.pl add --role=owner", however I agree that this can only add normal rather than privileged owners.

I am not sure if this was deliberate: when you bulk add a single person to lots of lists you normally want to add them as a privileged owner.

The alternative and old fashioned way to do this was to combine:

sympa --dump_users --role owner
sympa --restore_users --role owner

I attach a small wrapper script which you can run as either root or the sympa user (using "sudo -u sympa <script>"). You will want to adjust the following:

my $LIST_DATA="/var/lib/sympa/list_data";
my $domain="lists.cam.ac.uk";

--
David Carter Email: address@concealed
University of Cambridge, Phone: (01223) 334502
Information Services, Fax: (01223) 334679
7 J J Thomson Avenue,
Cambridge UK. CB3 0RB

Attachment: sympa_add_owner.pl
Description: Perl program




Archive powered by MHonArc 2.6.19+.

Top of Page