Just started using
setfacl to assign permissions for a specific group to /var/www/html (CentOS 5). Files in this directory are 640, root:apache. However, I've noticed that after doing something like:
setfacl -R -m g:developers:rwx /var/www/html setfacl -R -m d:g:developers:rwx /var/www/html
ls -al shows that a newly created file's owner and group are both set to my username.
Is there a way (using
setfacl) to enforce newly created files to get the permissions of the ACLs AND then set the owner:group to root:apache? Or, alternatively, is this best done through a periodic cron job that does a
chown -R root.apache /var/www/html down the entire DocumentRoot? Or... am I missing something else completely?