Skip to content

ncerny/facl

Repository files navigation

facl

Cookbook used to setup POSIX filesystem ACLs on Linux.

Examples

Individual file

include_recipe 'facl'

facl '/tmp/facl_test' do
  user  :'' => 'rw-', test_user: 'rwx'
  group :'' => 'rw-'
  mask  :'' => 'rwx'
  other :'' => 'r--'
end

Directory

include_recipe 'facl'

facl '/tmp/facl_test_dir' do
  user  :'' => 'rw-', test_user: 'rwx'
  group :'' => 'rw-'
  mask  :'' => 'rwx'
  other :'' => 'r--'
end

Directory default ACL

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

Directory, recursive

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages