From owner-freebsd-apache@freebsd.org Fri Oct 18 12:40:46 2019 Return-Path: Delivered-To: freebsd-apache@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A75C814FC8E for ; Fri, 18 Oct 2019 12:40:46 +0000 (UTC) (envelope-from jonathan@fluent.ltd.uk) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46vlxp476Gz4Wnq for ; Fri, 18 Oct 2019 12:40:46 +0000 (UTC) (envelope-from jonathan@fluent.ltd.uk) Received: by mailman.nyi.freebsd.org (Postfix) id 8B63D14FC8D; Fri, 18 Oct 2019 12:40:46 +0000 (UTC) Delivered-To: apache@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8B20514FC8C for ; Fri, 18 Oct 2019 12:40:46 +0000 (UTC) (envelope-from jonathan@fluent.ltd.uk) Received: from z.mx.fluent.ltd.uk (z.mx.fluent.ltd.uk [195.78.94.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46vlxn4Dckz4Wnm for ; Fri, 18 Oct 2019 12:40:45 +0000 (UTC) (envelope-from jonathan@fluent.ltd.uk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fluent.ltd.uk; s=key1; h=Message-Id:In-Reply-To:To:References:Date:Subject: Mime-Version:Content-Type:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ekUQ+Lkh/eGkwRtXiBCu5On7dcMaUrM5ple8nBDvF+s=; b=aauWHDXMUugoJER56lcO3H6iPc xMQh4XX3E6w0niIXGIjrItmPjAXm++7ns6tth32d0mD3YF9TfGHtvEhLqeyEmucbq9KPuzDibH6Yn ZNPXR6JAJS12fZ04veQ91XoHro4WF/lR6uzZQt5XVIKVman59kEQStsjAnxuz0wDfBlg=; Received: from [87.75.107.42] (port=58442 helo=[192.168.1.122]) by mail.fluent.ltd.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1iLRYg-000HaV-OQ for apache@FreeBSD.org; Fri, 18 Oct 2019 13:40:42 +0100 From: Jonathan Gilpin Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: FreeBSD Port: www/apache24 Date: Fri, 18 Oct 2019 13:40:43 +0100 References: <00BA340A-F575-4B2F-ADB3-FBE5A1AA3F11@fluent.ltd.uk> To: "apache@freebsd.org" In-Reply-To: <00BA340A-F575-4B2F-ADB3-FBE5A1AA3F11@fluent.ltd.uk> Message-Id: <9EFA087D-1DB3-4041-A5B4-9F37D90290E1@fluent.ltd.uk> X-Mailer: Apple Mail (2.3445.104.11) X-SA-Do-Not-Run: Yes X-AuthenticatedID: jonathan@fluent.ltd.uk X-OriginalFromAdr: jonathan@fluent.ltd.uk X-SA-Exim-Connect-IP: 87.75.107.42 X-SA-Exim-Mail-From: jonathan@fluent.ltd.uk X-SA-Exim-Scanned: No (on mail.fluent.ltd.uk); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 46vlxn4Dckz4Wnm X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fluent.ltd.uk header.s=key1 header.b=aauWHDXM; dmarc=pass (policy=none) header.from=fluent.ltd.uk; spf=pass (mx1.freebsd.org: domain of jonathan@fluent.ltd.uk designates 195.78.94.14 as permitted sender) smtp.mailfrom=jonathan@fluent.ltd.uk X-Spamd-Result: default: False [-2.52 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[fluent.ltd.uk:s=key1]; RCVD_IN_DNSWL_LOW(-0.10)[14.94.78.195.list.dnswl.org : 127.0.5.1]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[fluent.ltd.uk.dwl.dnswl.org : 127.0.5.0]; R_SPF_ALLOW(-0.20)[+ip4:195.78.94.0/23:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-0.98)[-0.980,0]; DKIM_TRACE(0.00)[fluent.ltd.uk:+]; DMARC_POLICY_ALLOW(-0.50)[fluent.ltd.uk,none]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(0.05)[asn: 12703(0.35), country: GB(-0.08)]; ASN(0.00)[asn:12703, ipnet:195.78.94.0/23, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2019 12:40:46 -0000 Sorry I forgot to include this: # suexec -V -D AP_DOC_ROOT=3D"/home" -D AP_GID_MIN=3D1000 -D AP_HTTPD_USER=3D"www" -D AP_LOG_EXEC=3D"/var/log/httpd-suexec.log" -D AP_SAFE_PATH=3D"/usr/local/bin:/usr/bin:/bin" -D AP_UID_MIN=3D1000 -D AP_USERDIR_SUFFIX=3D"public_html" # httpd -V Server version: Apache/2.4.41 (FreeBSD) Server built: unknown Server's Module Magic Number: 20120211:88 Server loaded: APR 1.7.0, APR-UTIL 1.6.1 Compiled using: APR 1.7.0, APR-UTIL 1.6.1 Architecture: 64-bit Server MPM: prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled) -D APR_USE_FLOCK_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=3D256 -D HTTPD_ROOT=3D"/usr/local" -D SUEXEC_BIN=3D"/usr/local/sbin/suexec" -D DEFAULT_PIDLOG=3D"/var/run/httpd.pid" -D DEFAULT_SCOREBOARD=3D"/var/run/apache_runtime_status" -D DEFAULT_ERRORLOG=3D"/var/log/httpd-error.log" -D AP_TYPES_CONFIG_FILE=3D"etc/apache24/mime.types" -D SERVER_CONFIG_FILE=3D"etc/apache24/httpd.conf" > On 18 Oct 2019, at 13:38, Jonathan Gilpin = wrote: >=20 > Dear Sir, >=20 > I have am using the FreeBSD Apache 2.4 with Suexec Port to run PHP. >=20 > I have discovered that files uploaded in PHP using basic code are = ending up owned by the group =E2=80=98wheel=E2=80=99 rather than the = group specified in=20 >=20 > SuexecUserGroup "#3008" "#3010" >=20 > E.g. I end up with:=20 >=20 > -rw-r--r-- 1 marsecreview wheel 209166 Oct 18 13:12 = Screenshot 2019-10-17 at 18.02.49.png >=20 > # id marsecreview > uid=3D3008(marsecreview) gid=3D3010(marsecreview) = groups=3D3010(marsecreview) >=20 > This is a standard installation so Apache runs as www on FreeBSD: >=20 > id www > uid=3D80(www) gid=3D80(www) groups=3D80(www) >=20 > So I really do not understand where the =E2=80=98wheel=E2=80=99 group = is coming into this.. >=20 > entry from /etc/group is: >=20 > wheel:*:0:root,jonathan >=20 >=20 > Is this a bug?=20 >=20 > Kind Regards, >=20 > Jonathan Gilpin >=20 >=20 >=20 >=20