You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work on several ZFS versions runned by several OS.
I would like to check which zfs/zpool commands are allowed by default for a default non-root user.
I noticed this on a test server with a standard user:
user@node ~ $ BOOM=💥
user@node ~ $ zfs get version &> /dev/null ||echo"$BOOM zfs get"
user@node ~ $ zfs list &> /dev/null ||echo"$BOOM zfs list"
user@node ~ $ zfs set comment=hello_test rpool &> /dev/null ||echo"$BOOM zfs set comment"
💥 zfs set comment
user@node ~ $ zfs set foo:bar=on rpool &> /dev/null ||echo"$BOOM zfs set foo:bar"
💥 zfs set foo:bar
user@node ~ $ zfs upgrade &> /dev/null ||echo"$BOOM zfs upgrade"
user@node ~ $ zpool get version &> /dev/null ||echo"$BOOM zpool get"
user@node ~ $ zpool history&> /dev/null ||echo"$BOOM zpool history"
💥 zpool history
user@node ~ $ zpool iostat &> /dev/null ||echo"$BOOM zpool iostat"
user@node ~ $ zpool list &> /dev/null ||echo"$BOOM zpool list"
user@node ~ $ zpool set comment=hello_test rpool &> /dev/null ||echo"$BOOM zpool set"
💥 zpool set
user@node ~ $ zpool status -xv &> /dev/null ||echo"$BOOM zpool status"
user@node ~ $ zpool upgrade &> /dev/null ||echo"$BOOM zpool upgrade"
user@node ~ $
I want to be certain of what is allowed or not for all openZFS commands instead of running silly human test like those.
Is this easly available in the code?
A new ZFS command listing allowed commands for current/mentionned user could be useful for automation testing
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ZFS people 👋
I work on several ZFS versions runned by several OS.
I would like to check which
zfs
/zpool
commands are allowed by default for a default non-root user.I noticed this on a test server with a standard user:
I want to be certain of what is allowed or not for all openZFS commands instead of running silly human test like those.
Beta Was this translation helpful? Give feedback.
All reactions