From owner-freebsd-questions@FreeBSD.ORG Mon Jan 30 19:31:29 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 885E910656B1 for ; Mon, 30 Jan 2012 19:31:29 +0000 (UTC) (envelope-from lubos.matousek@lubnet.net) Received: from mail.internethosting.cz (mail.internethosting.cz [95.168.196.88]) by mx1.freebsd.org (Postfix) with ESMTP id 396798FC08 for ; Mon, 30 Jan 2012 19:31:29 +0000 (UTC) Received: from nyx.internets.cz (localhost [127.0.0.1]) by mail.internethosting.cz (Postfix) with ESMTP id 4355661C80 for ; Mon, 30 Jan 2012 20:31:28 +0100 (CET) X-Virus-Scanned: amavisd-new at internethosting.cz Received: from mail.internethosting.cz ([95.168.196.88]) by nyx.internets.cz (nyx.internets.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bn-40Wc2StDR for ; Mon, 30 Jan 2012 20:31:23 +0100 (CET) Received: by mail.internethosting.cz (Postfix, from userid 58) id 63D4C61C61; Mon, 30 Jan 2012 20:31:23 +0100 (CET) X-Spam-DCC: X-Spam-SCL: 1 Received: from [192.168.0.3] (amadeo.lubnet.net [62.245.82.226]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.internethosting.cz (Postfix) with ESMTPSA id E01A261C54 for ; Mon, 30 Jan 2012 20:31:21 +0100 (CET) Message-ID: <4F26F008.50902@lubnet.net> Date: Mon, 30 Jan 2012 20:31:20 +0100 From: Lubomir Matousek User-Agent: Mozilla/5.0 (Windows NT 5.1; 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> In-Reply-To: <4F26A08A.8090203@my.gd> Content-Type: text/plain; charset=ISO-8859-2; format=flowed 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: Mon, 30 Jan 2012 19:31:29 -0000 > > > 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