From owner-freebsd-current@FreeBSD.ORG Fri Dec 21 02:27:37 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B62D516A418 for ; Fri, 21 Dec 2007 02:27:37 +0000 (UTC) (envelope-from avatar@mmlab.cse.yzu.edu.tw) Received: from www.mmlab.cse.yzu.edu.tw (www.mmlab.cse.yzu.edu.tw [140.138.150.166]) by mx1.freebsd.org (Postfix) with ESMTP id 7C73113C457 for ; Fri, 21 Dec 2007 02:27:37 +0000 (UTC) (envelope-from avatar@mmlab.cse.yzu.edu.tw) Received: by www.mmlab.cse.yzu.edu.tw (qmail, from userid 1000) id 4BCA28CA0AC; Fri, 21 Dec 2007 10:27:36 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by www.mmlab.cse.yzu.edu.tw (qmail) with ESMTP id 389EB8CA0AB; Fri, 21 Dec 2007 10:27:36 +0800 (CST) Date: Fri, 21 Dec 2007 10:27:36 +0800 (CST) From: Tai-hwa Liang To: "Ralf S. Engelschall" In-Reply-To: <20071220183502.GA26520@engelschall.com> Message-ID: <0712211026546.7829@www.mmlab.cse.yzu.edu.tw> References: <20071220183502.GA26520@engelschall.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: "zfs list" as non-privileged user? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2007 02:27:37 -0000 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? > 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# _ -- Cheers, Tai-hwa Liang