Linux File Access Control Lists
The Linux ACL state module requires the getfacl and setfacl binaries.
Ensure a Linux ACL is present
root:
acl.present:
- name: /root
- acl_type: user
- acl_name: damian
- perms: rwx Ensure a Linux ACL does not exist
root:
acl.absent:
- name: /root
- acl_type: user
- acl_name: damian
- perms: rwx Ensure a Linux ACL list is present
root:
acl.list_present:
- name: /root
- acl_type: user
- acl_name:
- damian
- homer
- perms: rwx Ensure a Linux ACL list does not exist
root:
acl.list_absent:
- name: /root
- acl_type: user
- acl_name:
- damian
- homer
- perms: rwx Ensure a Linux ACL does not exist
Ensure a Linux ACL list does not exist
Takes a list of acl names and remove them from the given path
Ensure a Linux ACL list is present
Takes a list of acl names and add them to the given path
Ensure a Linux ACL is present
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.linux_acl.html