"zfs list" as non-privileged user?

Ralf S. Engelschall rse+freebsd-current at FreeBSD.org
Thu Dec 20 23:40:41 PST 2007


On Fri, Dec 21, 2007, Tai-hwa Liang wrote:

> On Thu, 20 Dec 2007, Ralf S. Engelschall wrote:
>> 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?
>
>   Is this non-root user in 'operator' group?

No, it isn't. According to the /dev/zfs permissions I guess it is
intended to be. But I nevertheless find it strange that even a simple
"zfs list" requires operator privileges. As I said, this at least
prevents people from checking the existance of snapshots on the
filesystems their home directory resides on, etc.

--
rse at FreeBSD.org                        Ralf S. Engelschall
FreeBSD.org/~rse                       rse at engelschall.com
FreeBSD committer                      www.engelschall.com



More information about the freebsd-current mailing list