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

Allow host collectors to error if they have insufficient permissions #1385

Open
chris-sanders opened this issue Oct 31, 2023 · 1 comment
Open

Comments

@chris-sanders
Copy link
Member

Describe the rationale for the suggested feature.
Very frequently users for get to run a host collect as root. This results in the collection simply reporting "permission denied" on files I need to be able to see.

Describe the feature

It would be good if at the HostCollector level either Troubleshoot automatically caught permission denied errors or at least could be user configurable to error on permission denied errors. While normally the project endeavors to complete collection regardless there are times when it would be better to just let the user know they have insufficient permissions so they can immediately rerun with the correct permissions.

@xavpaice
Copy link
Member

would it be sufficient to continue the collection, but issue warnings on stderr to the tune of "you should consider running this with sudo or as root in order to complete the collection, the result of this without permissions will be limited"?

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