file-permissions
file-permissions copied to clipboard
Exclude files/folder
Sometimes you want to set ACL but exclude some file. Is that possible?
Specially I want to set ACL on every files and folder inside a folder but not to the parent folder.
From the CLI, with the setfacl instruction you can give ACL permissions to all files/folders from a folder except the parent folder using this declaration:
setfacl -R -m u:webuser:rwx parent_folder_path/*
(Note the final *)
In deploy.rb, you can add this * in file_permissions_paths declaration:
#ACL Permissions
set :permission_method, :acl
set :file_permissions_paths, ["parent_folder_path/*"]