From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 18:41:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4A1E106566B for ; Fri, 11 Apr 2008 18:41:32 +0000 (UTC) (envelope-from mark@mkproductions.org) Received: from server1.tntpowerhost.com (server1.tntpowerhost.com [208.100.3.23]) by mx1.freebsd.org (Postfix) with ESMTP id A0DA08FC15 for ; Fri, 11 Apr 2008 18:41:32 +0000 (UTC) (envelope-from mark@mkproductions.org) Received: from adsl-75-6-5-235.dsl.spfdmo.sbcglobal.net ([75.6.5.235] helo=localhost) by server1.tntpowerhost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JkOBq-000FsX-N8; Fri, 11 Apr 2008 13:41:34 -0500 Date: Fri, 11 Apr 2008 13:41:28 -0500 From: Mark Kane To: Norman Maurer Message-ID: <20080411134128.7fc373b0@mkproductions.org> In-Reply-To: <1207919596.3113.1.camel@norman-laptop> References: <1207919596.3113.1.camel@norman-laptop> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server1.tntpowerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [26 6] / [26 6] X-AntiAbuse: Sender Address Domain - mkproductions.org Cc: freebsd-questions Subject: Re: zfs list and non-root user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2008 18:41:32 -0000 On Fri, Apr 11, 2008, at 15:13:16 +0200, Norman Maurer wrote: > Hi all, > > is it normal that I can't do a 'zfs list' ( for example ) as non-root > user ? > > $ zfs list > internal error: failed to initialize ZFS library > > I think there is really a use case for use some zfs commands as > non-root user.. > > Thx > Norman Hi. One way to do this as a non-root user is to add the account to the "operator" group. This is what I do on my personal desktop machine and it has worked fine, but I understand that may not be best in all cases. You might also try changing the permissions on /dev/zfs. I don't do this method and I'm not sure if it's a proper way, but from trying it very briefly it seems to work correctly with the user not in the "operator" group. Hope that helps, -Mark -- Internet Radio: Party107 (Trance/Electronic) - http://www.party107.com Rock 101.9 The Edge (Rock) - http://www.rock1019.net IRC: MIXXnet IRC Network - irc.mixxnet.net (Nick: MIXX941)