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

Why isn't nosudo the default? #17

Open
sbraz opened this issue Mar 30, 2021 · 1 comment
Open

Why isn't nosudo the default? #17

sbraz opened this issue Mar 30, 2021 · 1 comment

Comments

@sbraz
Copy link

sbraz commented Mar 30, 2021

Hi,
I noticed that on Proxmox all users can run zfs commands. Is that also the case for other systems? Are there any reasons to avoid running the commands as an unprivileged user?

If sudo is required, I would also suggest being more restrictive in the suggestions you include in README. Something like this seems to be enough and doesn't grant access to any dangerous zfs commands:

<user> ALL=(ALL) NOPASSWD: /sbin/zfs list
<user> ALL=(ALL) NOPASSWD: /sbin/zpool list <pool>
<user> ALL=(ALL) NOPASSWD: /sbin/zfs get compression <pool>
<user> ALL=(ALL) NOPASSWD: /sbin/zfs get compressratio <pool>
@HankB
Copy link

HankB commented Nov 29, 2022

Debian also does not require root privileges to run the zfs and zpool commands that monitor pool health.

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