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

file can't handle enforcing permissions on special devices #6704

Open
jaymzh opened this issue Dec 20, 2017 · 2 comments
Open

file can't handle enforcing permissions on special devices #6704

jaymzh opened this issue Dec 20, 2017 · 2 comments

Comments

@jaymzh
Copy link
Collaborator

jaymzh commented Dec 20, 2017

Description

file resource bails out on char, block, socket files, etc. - even if not context is specified.

However, a file resource is the logical way to enforce file ownership and permissions on such files. Cause they're files, because unix.

Chef Version

12.21.26

Platform Version

RHEL

Replication Case

chef-apply -e 'file "/dev/zero" do owner "root" end'

Client Output

File /dev/zero exists, but is a char device, set force_unlink to true to remove
@lamont-granquist lamont-granquist added this to the 14.0 milestone Jan 8, 2018
@lamont-granquist
Copy link
Contributor

isn't strictly necessary for this to go into 14.0 but i'm just putting it in that bucket because that's the one i'm going to start paying attention to, and otherwise i'll miss it.

@jaymzh
Copy link
Collaborator Author

jaymzh commented Jan 20, 2024

@johnmccrae - is there a PR associated with this? I don't remember this getting fixed.

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

No branches or pull requests

4 participants