Skip to Content.
Sympa Menu

en - [sympa-users] Re: Re: newaliases

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] Re: Re: newaliases
  • Date: Mon, 8 Jan 2007 18:18:56 +0100


Peter has a good suggestion. I was able to get it to work by moving
alias_manager.pl to alias_manager_sudo_wrapper.pl allias_wrapper.pl file needs
to be:

----
#!/usr/bin/perl

exec '/usr/bin/sudo', '-u', 'root',
'/home/sympa/sbin/alias_manager_sudo_wrapper.pl',
"$ARGV[0]","$ARGV[1]","$ARGV[2]","$ARGV[3]";
----

My PERL skillz are weak, so some one might have a better way of passing the
arguments in better way (using @ARGV resulted in all the arguments becoming
one
when they are passed).

You need to make sure your sympa aliases file has the following perms:

-rw-r--r-- 1 sympa root 6003 Jan 8 12:05 sympa_aliases

Sendmail will not like it if the file is group or everyone writable, but does
not seem to care who actaully owns it.

Then you need to add the following to your /etc/sudoers file:

sympa <servername>=(root) NOPASSWD:
/home/sympa/sbin/alias_manager_sudo_wrapper.pl

for example:

sympa mysympaserver=(root) NOPASSWD:
/home/sympa/sbin/alias_manager_sudo_wrapper.pl

And finally, make sure that the sympa user is not a nologin user. It needs to
be able have shell access to be able to sudo.

I
---
Chris Andrews
Boston College
Collaboration Team


  • [sympa-users] Re: Re: newaliases, christopher.andrews.2, 01/08/2007

Archive powered by MHonArc 2.6.19+.

Top of Page