Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 28962

Summary: etc-update doesn't preserve new ownership and permissions
Product: Portage Development Reporter: Tom Payne (RETIRED) <twp>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tom Payne (RETIRED) gentoo-dev 2003-09-17 04:10:34 UTC
If I install an updated configuration file with new ownership and permissions
and run etc-update to update this config file then the new ownership and
permissions are not transferred to the updated configuration file.

See, for example, bug # 28868. I want to update the ebuild so the config files'
ownership is changed from root to apache. Have used insopts in the ebuild.
However, if the user already has phpmyadmin installed then cfgpro/etc-update
prevents these ownership changes from occuring.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-09-18 21:27:29 UTC
I'd recommend handling that in pkg_postinst().

Change the file to be merged, and any existing ones too.
There isn't an interface for dealing with the permissions
issue.