From owner-freebsd-ports@FreeBSD.ORG Fri Apr 20 21:31:18 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4EE2216A400 for ; Fri, 20 Apr 2007 21:31:18 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp2.utdallas.edu (smtp2.utdallas.edu [129.110.10.33]) by mx1.freebsd.org (Postfix) with ESMTP id 2F4DD13C448 for ; Fri, 20 Apr 2007 21:31:18 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp2.utdallas.edu (Postfix) with ESMTP id CAB005C1D2; Fri, 20 Apr 2007 16:31:17 -0500 (CDT) Date: Fri, 20 Apr 2007 16:31:17 -0500 From: Paul Schmehl To: Jeffrey Goldberg Message-ID: In-Reply-To: References: <200704200842.48793.david@vizion2000.net> <94592079D5FE1208BC6F7D03@utd59514.utdallas.edu> X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========71AFE641B56D1AC411E6==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@freebsd.org, Jean Milanez Melo Subject: Re: Mailman GID problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2007 21:31:18 -0000 --==========71AFE641B56D1AC411E6========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On Friday, April 20, 2007 14:23:14 -0500 Jeffrey Goldberg=20 wrote: > On Apr 20, 2007, at 1:44 PM, Paul Schmehl wrote: > >> *If* what you say is true [...] > > which I am increasingly doubtful of. > >> then this should fix it: >> >> --- pkg-install.orig Fri Apr 20 13:42:17 2007 >> +++ pkg-install Fri Apr 20 13:42:47 2007 >> @@ -43,6 +43,7 @@ >> (umask 002 && /bin/mkdir -p "%%MAILMANDIR%%") || exit 1 >> /usr/sbin/chown -R "%%USER%%:%%GROUP%%" "%%MAILMANDIR%%" || exit 1 >> /bin/chmod g+s "%%MAILMANDIR%%" || exit 1 >> + /usr/sbin/chown -R "nobody" "%%MAILMANDIR%%/data" || exit 1 >> fi >> ;; > > Can you tell me where to find the unprocessed version of pkg-install? > What is in work/ has already been processed by sed, and I didn't see > anything obvious in files/ > > I know I should read the porters' handbook, but at this point I'm just > poking around to try to get some sense of how the pieces come together. > /usr/ports/mail/mailman/pkg-install > I'm beginning to think that the fix will be as simple as > > --- Makefile.orig Fri Apr 20 14:17:08 2007 > +++ Makefile Fri Apr 20 14:18:14 2007 > @@ -88,7 +88,7 @@ > .if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_EXIM4) > BROKEN=3D choose only one MTA integration > .endif > -MAIL_GID?=3D nobody > +MAIL_GID?=3D mailman > .endif > .if defined(WITH_CHINESE) > No, that's *absolutely* the wrong fix. The group required for mailman to=20 work depends on the mail server you are using. Sendmail, postfix, qmail,=20 etc. all require different groups. So using a fixed group might work for=20 you, but it would break it for a lot of other people's setups. Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========71AFE641B56D1AC411E6==========--