Silmano n00b
Joined: 10 Mar 2012 Posts: 59
|
Posted: Wed Feb 07, 2018 11:27 am Post subject: Doubt regarding fowners overwritting permissions |
|
|
I've been fiddling with an ebuild that uses fowners to change the owner user/group of a given directory, but it seems it does that only if the directory wasn't present at the time of the installation.
For example, from monitorix-3.10.0-r1 ebuild:
Code: | keepdir /var/lib/${PN}/www/imgs
fowners monitorix:monitorix /var/lib/${PN}/www/imgs |
If I remove /var/lib/${PN}/www/imgs and re-emerge monitorix, I find the imgs folder with monitorix:monitorix as user:group owners.
If I do a chown to any other user:group and I re-emerge monitorix, the previous user:group configured by my manual call to chown its preserved.
Any idea why fowners its not updating the www/imgs folder ownership in case that folder its already created? |
|