From owner-freebsd-current@freebsd.org Thu Sep 10 16:46:46 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D6E53DD3D1 for ; Thu, 10 Sep 2020 16:46:46 +0000 (UTC) (envelope-from freqlabs@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BnPtG2nCTz4JG4 for ; Thu, 10 Sep 2020 16:46:46 +0000 (UTC) (envelope-from freqlabs@FreeBSD.org) Received: from Ryans-MBP.attlocal.net (unknown [IPv6:2600:1700:358a:c660:d9c2:c8bc:4989:ff20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: freqlabs/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 2E5E11B53F for ; Thu, 10 Sep 2020 16:46:46 +0000 (UTC) (envelope-from freqlabs@FreeBSD.org) Subject: Re: `zfs list` permission denied To: freebsd-current@freebsd.org References: <20200910163333.erxycebv23gkqbkb@mutt-hbsd> From: Ryan Moeller Message-ID: <6403ab4c-47b2-5bd9-9187-d9c549ef2220@FreeBSD.org> Date: Thu, 10 Sep 2020 12:46:45 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200910163333.erxycebv23gkqbkb@mutt-hbsd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 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: Thu, 10 Sep 2020 16:46:46 -0000 On 9/10/20 12:33 PM, Shawn Webb wrote: > I used to be able to run `zfs list` as an unprivileged user. Now I > can't, even when my user is in the operator group. > > ==== BEGIN LOG ==== > hbsd-current-01[shawn]:/home/shawn $ zfs list > Operation not permitted > hbsd-current-01[shawn]:/home/shawn (1) $ id > uid=1001(shawn) gid=1001(shawn) groups=1001(shawn),0(wheel),5(operator) > hbsd-current-01[shawn]:/home/shawn $ ls -l /dev/zfs > crw-rw-rw- 1 root operator 0x52 Sep 10 10:43 /dev/zfs > ==== END LOG ==== > > Thanks, > You probably don't have the zfs module loaded. The commands will try to load it if it isn't, and that will fail if you aren't root. -Ryan