"zfs list" as non-privileged user?

From: Ralf S. Engelschall <rse+freebsd-current_at_FreeBSD.org>
Date: Thu, 20 Dec 2007 19:35:02 +0100
I recognize that under FreeBSD 7 a simple "zfs list" as non-root just
results in:

| rse$ zfs list
| internal error: failed to initialize ZFS library
| rse$ _

Is this really intentional or just a bug?

This for instance prevents non-privileged users to run my snapshot(8)
frontend (see http://people.freebsd.org/~rse/snapshot/)...

| rse$ snapshot list
| Filesystem          User   User%     Snap   Snap%  Snapshot
| rse$ _

...although there are actually snapshots (this time run as root):

| root# snapshot list
| Filesystem          User   User%     Snap   Snap%  Snapshot
| /j/tot               1GB   17.1%      3MB    0.0%  hourly.2
| /j/tot               1GB   17.1%   1024KB    0.0%  hourly.1
| /j/tot               1GB   17.1%   1024KB    0.0%  hourly.0
| /j/en                2GB   27.1%      2MB    0.0%  hourly.2
| /j/en                2GB   27.1%      2MB    0.0%  hourly.1
| /j/en                2GB   27.1%      2MB    0.0%  hourly.0
| root# _

--
rse_at_FreeBSD.org                        Ralf S. Engelschall
FreeBSD.org/~rse                       rse_at_engelschall.com
FreeBSD committer                      www.engelschall.com
Received on Thu Dec 20 2007 - 17:51:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:24 UTC