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

ncm-filecopy: Provide ability to remove immutable bit #1531

Open
jrha opened this issue Oct 28, 2021 · 0 comments
Open

ncm-filecopy: Provide ability to remove immutable bit #1531

jrha opened this issue Oct 28, 2021 · 0 comments

Comments

@jrha
Copy link
Member

jrha commented Oct 28, 2021

We recently found some systems where a user had set the immutable bit chattr +i … on a file to prevent their changes to it being overwritten by Quattor. This rather predictably caused filecopy to error:

2021/10/28-15:34:36 [INFO] Checking file /usr/sbin/foo...
2021/10/28-15:34:36 [INFO] Checking file /var/lock/foo...
2021/10/28-15:34:36 [ERROR] uncaught error exception in component: filecopy
2021/10/28-15:34:36 [ERROR] *** unlink(/root/foo/bar): Operation not permitted
2021/10/28-15:34:36 [INFO] Configure on component filecopy executed, 1 errors, 0 warnings
2021/10/28-15:34:36 [VERB] No events to report

We should enable filecopy (and probably other components) to remove the immutable bit when touching files.

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

No branches or pull requests

1 participant