Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28962 - etc-update doesn't preserve new ownership and permissions
Summary: etc-update doesn't preserve new ownership and permissions
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 04:10 UTC by Tom Payne (RETIRED)
Modified: 2011-10-30 22:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.