Date: Thu, 29 May 2008 14:08:43 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Mark Kane <mark@mkproductions.org> Cc: freebsd-questions <freebsd-questions@freebsd.org>, Norman Maurer <norman@apache.org> Subject: Re: zfs list and non-root user Message-ID: <20080529120843.GF3159@garage.freebsd.pl> In-Reply-To: <20080411134128.7fc373b0@mkproductions.org> References: <1207919596.3113.1.camel@norman-laptop> <20080411134128.7fc373b0@mkproductions.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--ChQOR20MqfxkMJg9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 11, 2008 at 01:41:28PM -0500, Mark Kane wrote: > On Fri, Apr 11, 2008, at 15:13:16 +0200, Norman Maurer wrote: > > Hi all, > >=20 > > is it normal that I can't do a 'zfs list' ( for example ) as non-root > > user ?=20 > >=20 > > $ zfs list > > internal error: failed to initialize ZFS library > >=20 > > I think there is really a use case for use some zfs commands as > > non-root user.. > >=20 > > Thx > > Norman >=20 > Hi. >=20 > 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. >=20 > 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. In Solaris anyone can open /dev/zfs and the kernel side of ZFS decides if the user has permission to perform some action or not. In FreeBSD we try to be more careful for now, but it will change soon, once we import delegated administration functionality. Although... The error above (failed to initialize ZFS library) most likely means that zfs.ko module wasn't loaded. zfs(8) tries to do that automatically, but of course it will only succeed if we are root. In this case zfs.ko has to be manually loaded by root and then members of operator group can use zfs(8) command. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --ChQOR20MqfxkMJg9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIPpzKForvXbEpPzQRApEiAKCrWHo3fQWHbfZpDAbPfdNwqkdKagCgrVRS 6MBLqrS6l+eiSd0QR24Ybhs= =w185 -----END PGP SIGNATURE----- --ChQOR20MqfxkMJg9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080529120843.GF3159>