-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Question: why does ZoL require root for read-only operations? #4468
Comments
The best work-around at this point is to create an /etc/sudoers.d/zfs file (permissioned 0440) with these contents and then use sudo:
|
"Questions" belong on the mailing list. |
@mdlayher at the moment you'll want to use sudo. Slightly longer term we do want to update the code so that certain commands don't require root. |
@behlendorf thanks for the info, and apologies, was not aware of the mailing list! Closing. |
Related to an ongoing discussion in prometheus/node_exporter#213.
Apparently, on FreeBSD, you are able to retrieve these kinds of metrics without superuser privileges. For example, commands like
zfs list
,zfs get
, etc. shouldn't really require running as root.Is there any way around this, and if not, is there a reason that ZoL works this way? Thanks in advance.
The text was updated successfully, but these errors were encountered: