Advertisement
Guest User

cfengine aces clean up

a guest
Mar 18th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. body common control
  2. {
  3. bundlesequence => { "handle_aces" };
  4. }
  5.  
  6. bundle agent handle_aces
  7. {
  8. files:
  9. "/tmp/myFileWithAces"
  10. acl => set_posix_aces;
  11. #acl => clean_posix_aces;
  12. }
  13.  
  14. # Settings some aces here
  15. body acl set_posix_aces
  16. {
  17. acl_method => "overwrite";
  18. acl_type => "posix";
  19. aces => { "user:*:rx", "group:*:rx", "all:r", "mask:rx" };
  20. }
  21.  
  22. # I want to remove current aces of the file
  23. body acl clean_posix_aces
  24. {
  25. acl_method => "overwrite";
  26. acl_type => "posix";
  27. aces => {};
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement