From owner-freebsd-questions@FreeBSD.ORG Tue Jan 31 10:51:34 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5CB3106566B for ; Tue, 31 Jan 2012 10:51:34 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 833338FC17 for ; Tue, 31 Jan 2012 10:51:34 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so6250763wib.13 for ; Tue, 31 Jan 2012 02:51:33 -0800 (PST) Received: by 10.180.107.68 with SMTP id ha4mr7868525wib.9.1328007093523; Tue, 31 Jan 2012 02:51:33 -0800 (PST) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id t15sm36463942wiv.6.2012.01.31.02.51.32 (version=SSLv3 cipher=OTHER); Tue, 31 Jan 2012 02:51:32 -0800 (PST) Message-ID: <4F27C7B3.10502@my.gd> Date: Tue, 31 Jan 2012 11:51:31 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F2699F8.5000809@lubnet.net> <4F26A08A.8090203@my.gd> <4F26F008.50902@lubnet.net> In-Reply-To: <4F26F008.50902@lubnet.net> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Subject: Re: Port upgrade change ownership of port installation directory and files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2012 10:51:35 -0000 On 1/30/12 8:31 PM, Lubomir Matousek wrote: > > > >> >> >> On 1/30/12 2:24 PM, Lubomir Matousek wrote: >>> I changed apache default user from www to wbserv. >>> >>> I changed also file ownership from www to wbserv. >>> >>> >>> Is there any way for portupgrade, that the ownership of installed port >>> files remains the same? It means wbserv? >>> >> > > On 30.1.2012 14:52, Damien Fleuriot wrote: > >> You'll want to be more specific, what files do you refer to ? >> >> If you're talking about the binaries and modules, they're owned by root >> so this is a non issue. >> >> If you're talking about the configuration files, they're also owned by >> root. >> >> If you're talking about SSL certificates you've installed them yourself >> and a portupgrade will not change their perms. >> >> If you're talking about logfiles, these are your responsibility and, >> again, the port won't change them. >> >> Last, if you're talking about your HTML/php/whatever files, these are >> also your responsiblity and untouched by the port. > > > Sorry for not being more specific. > > After port upgrade > portupgrade -rR squirrealmail > > I have to > chown -R wbserv:wbserv /var/spool/sqirrelmail > > Or after upgrade of postfixadmin: > portupfrade -rR postfixadmin > I have to change perms again: > chown -R wbserv:wbserv /usr/local/www/postfixadmin > > What is the best aprroach? To specify correct file ownership at > make.conf? How can I do that? > > Lubomir As pointed out by RW, make use of the WWWOWN and WWWGRP environment variables in your /etc/make.conf , that should solve the problem for you.