You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make sure acl package is present , then, after dirs are created,
/usr/bin/find /var/log/vhosts/<account> -type d -exec /usr/bin/setfacl -md u:<owner>:r {} \; # set default for newly created files
/usr/bin/find /var/log/vhosts/<account> -type f -exec /usr/bin/setfacl -m u:<owner>:r {} \; # give read on current files
/usr/bin/find /var/log/vhosts/<account> -type d -exec /usr/bin/setfacl -m u:<owner>:rx {} \; # give read and traverse on current dirs
or in ansible (just eyeballing here, this might need tweaking)
- name: Make sure setfacl is installed
package:
name: acl
state: present
- name: Give web account owner access to their own logs (default for new items)
acl:
path: /var/log/vhosts/{{ account }}
entity: "{{ account }}"
etype: user
permissions: rx
default: true
recursive: true
state: present
- name: Give web account owner access to their own logs (existing items)
acl:
path: /var/log/vhosts/{{ account }}
entity: "{{ account }}"
etype: user
permissions: rx
default: false
recursive: true
state: present
The text was updated successfully, but these errors were encountered:
or in ansible (just eyeballing here, this might need tweaking)
The text was updated successfully, but these errors were encountered: