Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude files/folder #7

Open
gagarine opened this issue Jul 27, 2015 · 1 comment
Open

Exclude files/folder #7

gagarine opened this issue Jul 27, 2015 · 1 comment

Comments

@gagarine
Copy link
Member

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.

@jcasamitjana
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants