Skip to Content.
Sympa Menu

en - Re: [sympa-users] Sympa 3.2.1 Web Archives (via wwsympa.fcgi)

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Harald Wilhelmi <address@concealed>
  • To: address@concealed
  • Cc: address@concealed, address@concealed
  • Subject: Re: [sympa-users] Sympa 3.2.1 Web Archives (via wwsympa.fcgi)
  • Date: Thu, 3 Jan 2002 11:00:25 +0100


Hi,

On Tue, Jan 01, 2002 at 02:48:52AM +0100, address@concealed wrote:
> It appears that the web archive files are being created as sympa.root
> which sucks, because my apache process (apache.apache) can't read them.
> I don't mind adding apache to the sympa group, but I'm not about to start
> adding it to the root group. Any idea where I can change the user the web
> archives get created as?

A few weeks ago I have run over an oddity in the sympa source code.
I believe, that it is connected with the problem you observe.
The Sympa *.pl files (esspecially sympa.pl and archived.pl)
contain the following lines:

## Set the UserID & GroupID for the process
$< = $> = (getpwnam('--USER--'))[2];
$( = $) = (getpwnam('--GROUP--'))[2];

I believe that changing the group will only work BEFORE giving up
root rights. The "getpwnam('--GROUP--')" thing looks als strange to me.
Maybe your problem vanishes when you replace them by:

## Set the UserID & GroupID for the process
$( = $) = getgrnam('--GROUP--'):
$< = $> = (getpwnam('--USER--'))[2];

I had not reported that as a a bug because I though so far, that the
sympa group isn't used for anything important. I will forward this to the
sympa developement group as well. According to my experience you
can be sure that they will take care of this soon.

Regards
Harald Wilhelmi

--

------------------------------------------------------------------
Harald Wilhelmi
Partner
EMail: address@concealed * Phone: +49(89)21589960
TNG Technology Consulting GmbH * Betastr. 9A * 85774 Unterfoehring



Archive powered by MHonArc 2.6.19+.

Top of Page