Postponed (maintainer needs more info)
Project:
Provision ACL support
Version:
6.x-1.12
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 May 2013 at 15:35 UTC
Updated:
27 Mar 2014 at 22:42 UTC
Jump to comment: Most recent
Comments
Comment #1
ergonlogicThis and this would seem to indicate that the aegir user should get full rwx access recursively within the managed directories.
Comment #2
helmo commentedThe aegir user does indeed have write access. However setfacl gives and "Operation not permitted" error.
As the file is owned by e.g. helmo and not by aegir only helmo would be allowed to change the acl.
The same seems to go for files created by the webserver, e.g. css aggration files.
Comment #3
ergonlogicIndeed, the setfacl docs describe the following permissions:
I would think granting the CAP_FOWNER capability to aegir processes would be out of the question...
Comment #4
helmo commentedThen I wonder how this has been used in the past. Was it a different usecase?
Comment #5
anarcat commentedSo the thing is that aegir creates a set of default ACLs anyways, so those files *already* have the proper ACL. Aegir doesn't check before setting them so it tries anyways and fails, but that doesn't matter because the ACLs are inherited.
So while, yes, we could use sudo or capabilities (i'd prefer the latter) to fix that problem, it only makes it so there's no warning, it shouldn't affect functionality.
Or are you having problems with ACLs not actually being correct on those files?
Comment #6
helmo commentedWell the main motivation was the warnings in the task log, since the task becomes yellow it will keep attracting attention...
Reading and writing the file content is fine, I just haven't tested all scenarios, like migrate.
So I would either add a test to avoid the warning, or fix it properly.
Comment #7
helmo commentednote to self: we would need the CAP_FOWNER capabilities.
Debian package libcap2-bin
Can we set this globally for the aegir user, or does it need to be per script ( drush ? )
Comment #8
valkum commentedI ran into this problem here too on my site.
As a workaround i created a little script which is executed via a root cronjob.
https://gist.github.com/valkum/9820479
As we have some guys who add themes per site i have to change the owner of the theme folders to.
If you have any suggestions to handle this a proper way don't be shy.
Simply put the script it somewhere and add to our roots crontab file
* * * * * /<Path>/acl_fix.shto run this every minute.