Date: Mon, 30 Jan 2012 20:31:20 +0100 From: Lubomir Matousek <lubos.matousek@lubnet.net> To: freebsd-questions@freebsd.org Subject: Re: Port upgrade change ownership of port installation directory and files Message-ID: <4F26F008.50902@lubnet.net> In-Reply-To: <4F26A08A.8090203@my.gd> References: <4F2699F8.5000809@lubnet.net> <4F26A08A.8090203@my.gd>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F26F008.50902>