Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body common control
- {
- bundlesequence => { "handle_aces" };
- }
- bundle agent handle_aces
- {
- files:
- "/tmp/myFileWithAces"
- acl => set_posix_aces;
- #acl => clean_posix_aces;
- }
- # Settings some aces here
- body acl set_posix_aces
- {
- acl_method => "overwrite";
- acl_type => "posix";
- aces => { "user:*:rx", "group:*:rx", "all:r", "mask:rx" };
- }
- # I want to remove current aces of the file
- body acl clean_posix_aces
- {
- acl_method => "overwrite";
- acl_type => "posix";
- aces => {};
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement