PKGNG upgrade / reinstall overides directory permissions

Baptiste Daroussin bapt at freebsd.org
Tue Jun 5 10:00:35 UTC 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120605/fd6a7425/attachment.pgp


More information about the freebsd-ports mailing list