Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Jun 2012 12:27:28 +0200
From:      Arnaud Houdelette <arnaud.houdelette@tzim.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: PKGNG upgrade / reinstall overides directory permissions
Message-ID:  <4FCDDF10.6090101@tzim.net>
In-Reply-To: <20120605100021.GR73254@ithaqua.etoilebsd.net>
References:  <4FCDCCFB.9080701@tzim.net> <20120605100021.GR73254@ithaqua.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Le 05/06/2012 12:00, Baptiste Daroussin a écrit :
> On Tue, Jun 05, 2012 at 11:10:19AM +0200, Arnaud Houdelette wrote:
>> Hello.
>>
>> I'm currently testing pkgng and poudriere as a replacement for old pkg
>> and pkg_jail.
>>
>> When upgrading/reinstalling a port, pkg install / pkg upgrade resets the
>> permissions of the directories created by the ports which already exist.
>>
>> Old pkg_add did not have this behavior.
>>
>> For example,
>> - install lighttpd
>> - chmod 750 /var/log/lighttpd
>> - pkg install -f lighttpd
>>
>> =>  /var/log/lighttpd mode is reset to 700.
>>
>> Is this behavior correct ? Is there some option to avoid this ?
>>
>> Arnaud
> This is expected and there is no way to avoid this but fixing the ports itself
> so that it create a 750 package.
>
> The package should be consistent and the permission should be set at the
> package creation
> time.
>
> Of course my view here might be wrong and I'm all open for aguments against that
> :D
>
> regards,
> Bapt

I think it's understandable at install time, but not at reinstall / 
upgrade time. It complicates binary upgrade process, which is what I 
thougth pkgng was intended to make easier.

User should not be forced to reapply permissions after each upgrade, 
even more if said user is not responsible of package creation (i.e. use 
of freebsd.org repo).
Moreover, this is not consistant with make install behavior, which does 
not overides permisions if directory already exists.

Maybe make an option of this ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FCDDF10.6090101>