Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Doubt regarding fowners overwritting permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Silmano
n00b
n00b


Joined: 10 Mar 2012
Posts: 59

PostPosted: Wed Feb 07, 2018 11:27 am    Post subject: Doubt regarding fowners overwritting permissions Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum