Details
-
Type: Improvement
-
Status: Won't Do
-
Priority: Trivial
-
Resolution: Won't Do
-
Affects Version/s: 4.3.0
-
Fix Version/s: Unscheduled
-
Component/s: Core CiviCRM
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
On many CiviCRM-Linux installations, the Apache PHP process runs as one user (www-data) and the CLI tools (drush, phpunit, etc) run as another user. For files in Civi's data directory (e.g. the log file), this can produce permission conflicts.
Linux file ACLs (setfacl/getfacl) allow sysadmins to address this situation by setting "default" permissions on a per-directory basis. With default ACLs, it doesn't matter which user creates the file – both users end up with the right permission.
...unless someone changes permissions away from the default. This seems to be the case with our log files. Specifically, Log_file appears to change permissions.