Advertisement
Guest User

cfengine aces clean up

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