From owner-freebsd-questions@freebsd.org Sun Aug 29 21:01:35 2021 Return-Path: Delivered-To: freebsd-questions@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 39FF5668056 for ; Sun, 29 Aug 2021 21:01:35 +0000 (UTC) (envelope-from doug@safeport.com) Received: from freeport.safeport.com (freeport.safeport.com [147.160.157.114]) by mx1.freebsd.org (Postfix) with ESMTP id 4GyQqL2BnFz4X8W for ; Sun, 29 Aug 2021 21:01:34 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by freeport.safeport.com (Postfix) with ESMTPS id D23ECEBA99 for ; Sun, 29 Aug 2021 17:01:33 -0400 (EDT) Date: Sun, 29 Aug 2021 17:01:42 -0400 (EDT) From: Doug Denault To: freebsd-questions@FreeBSD.ORG Subject: Re: wp allocates a file grouped to wheel In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4GyQqL2BnFz4X8W X-Spamd-Bar: +++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of doug@safeport.com does not designate 147.160.157.114 as permitted sender) smtp.mailfrom=doug@safeport.com X-Spamd-Result: default: False [7.50 / 15.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all:c]; GREYLIST(0.00)[pass,meta]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; VIOLATED_DIRECT_SPF(3.50)[]; NEURAL_SPAM_LONG(1.00)[1.000]; DMARC_NA(0.00)[safeport.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6405, ipnet:147.160.157.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-Spam: Yes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2021 21:01:35 -0000 On Sun, 29 Aug 2021, Doug Denault wrote: > I am running FreeBSD 11.4, php7.4 and apache2.4. Images uploaded using core > wordpress functions are grouped to wheel. This only happens with images, > other files are as they should (IMO) be. Apache is running grouped to www, > the php-fpm master runs grouped to wheel, the fpm user processes run with the > uid:gid of the user. I take this to mean that wordpress/php/fpm spawns a > process running at least gid-ed as wheel as the process must be a member of > the wheel group to create files grouped to wheel. Is this correct? Boo on me. creating a file in /tmp/ is owned as uid:wheel. _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-217-9220 Fax: 301-217-9277