Skip to Content.
Sympa Menu

en - Re: [sympa-users] Sympa NetBSD Suidperl

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Aumont - Comite Reseaux des Universites <address@concealed>
  • To: Bryan Buecking <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Sympa NetBSD Suidperl
  • Date: Mon, 08 Nov 2004 08:25:25 +0100

Bryan Buecking wrote:
I am having problems with web permissions, specifically within the spool/msg dir, and am wondering what permissions need to be set if I do not have suidperl.  If there is a way around using suidperl?  From what I have read, perl must be recompiled with suidperl under NetBSD.  This is an option, but not my first.  If anyone can give hints as to how I can set the appropriate privileges to for wwsympa to work, it would be greatly appreciated.
One way to do it is to make apache running with the same uid (or gid) as sympa.pl, archived.pl and bounced.pl and task_manager.pl . So they can share spools, and  configuration file. Check the following page http://www.sympa.org/doc/html/node8.html#SECTION00820000000000000000

  • Run a dedicated Apache server with sympa.sympa as uid.gid
  • Use a Apache virtual host with sympa.sympa as uid.gid ; Apache needs to be compiled with suexec
  • <>use the following small C wrapper, owned by Sympa and set the suid bit for it
<>#include <unistd.h>

#define WWSYMPA "/home/sympa/bin/wwsympa.fcgi"

int main(int argn, char **argv, char **envp) {
    argv[0] = WWSYMPA;
    execve(WWSYMPA,argv,envp);
}

Check the following page for details http://www.sympa.org/doc/html/node8.html#SECTION00820000000000000000

Serge

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.19+.

Top of Page