file-permissions icon indicating copy to clipboard operation
file-permissions copied to clipboard

Exclude files/folder

Open gagarine opened this issue 9 years ago • 1 comments

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.

gagarine avatar Jul 27 '15 13:07 gagarine

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/*"]

jcasamitjana avatar Mar 30 '16 09:03 jcasamitjana