Cookbook used to setup POSIX filesystem ACLs on Linux.
include_recipe 'facl'
facl '/tmp/facl_test' do
user :'' => 'rw-', test_user: 'rwx'
group :'' => 'rw-'
mask :'' => 'rwx'
other :'' => 'r--'
end
include_recipe 'facl'
facl '/tmp/facl_test_dir' do
user :'' => 'rw-', test_user: 'rwx'
group :'' => 'rw-'
mask :'' => 'rwx'
other :'' => 'r--'
end
include_recipe 'facl'
facl '/tmp/facl_test_dir' do
user :'' => 'rw-', test_user: 'rwx'
group :'' => 'rw-'
mask :'' => 'rwx'
other :'' => 'r--'
default :user => { :'' => 'rw-', test_user: 'rwx'}
:group => { :'' => 'rw-' }
:mask => { :'' => 'rwx' }
:other => { :'' => 'r--' }
end
include_recipe 'facl'
['/tmp/test','/tmp/test/recursion','/tmp/test/recursion/for','/tmp/test/recursion/for/module'].each do |k|
directory k
end
facl '/tmp/test' do
user :'' => 'rw-', test_user: 'rwx'
group :'' => 'rw-'
mask :'' => 'rwx'
other :'' => 'r--'
recurse true
end