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

Recursive doesn't appear to work #81

Open
devinmatte opened this issue Aug 9, 2020 · 1 comment
Open

Recursive doesn't appear to work #81

devinmatte opened this issue Aug 9, 2020 · 1 comment

Comments

@devinmatte
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.21
  • Ruby: 2.5.5p157
  • Distribution: RedHat
  • Module version: 1.0.0

How to reproduce (e.g Puppet code you use)

posix_acl { '/var/log':
    action     => set,
    permission => [
      'user::rwx',
      'group::r-x',
      'other::---',
      'mask::r-x',
      'user:dd-agent:rx',
    ],
    provider   => posixacl,
    recursive  => true,
  }

What are you seeing

It only applies to /var/log and not any subfiles

What behaviour did you expect instead

To recursively set all files within with the same permissions

Output log

Notice: /Stage[main]/Profile::Logs/Posix_acl[/var/log]/permission: permission changed ["group::r-x", "mask::r-x", "other::r-x", "user::rwx", "user:dd-agent:r-x"] to ["group::r-x", "mask::r-x", "other::---", "user::rwx", "user:dd-agent:r-x"]
# ls -la /var/log
total 758120
drwxr-x---+ 15 root     root          4096 Aug  9 03:28 .
drwxr-xr-x. 19 root     root           267 Sep  4  2018 ..
drwxr-x---+  2 root     root           232 Sep  4  2018 anaconda
drwx------+  2 root     root            99 Aug  9 17:01 audit
-rw-------+  1 root     root             0 Nov 29  2019 boot.log
...

Not even boot.log was changed to new permissions

Any additional information you'd like to impart

@alexjfisher
Copy link
Member

Could you run it with --debug so we can see what commands were actually run?

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