From owner-freebsd-fs@FreeBSD.ORG Thu Aug 7 17:41:22 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18D401065670 for ; Thu, 7 Aug 2008 17:41:22 +0000 (UTC) (envelope-from boris.kotzev@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.188]) by mx1.freebsd.org (Postfix) with ESMTP id 87E7E8FC23 for ; Thu, 7 Aug 2008 17:41:21 +0000 (UTC) (envelope-from boris.kotzev@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so367767mue.3 for ; Thu, 07 Aug 2008 10:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=32rwrqR2bKrv/Q/Aw8tdsLqj9cV7YyHLWnoBREt5w24=; b=nX+xXkHlByaN9tdd9dVWi1XaPQdWIoBi0idfwrj3SE3HtFMEwGN6oK/rhS3e9zREmf EkCvp5lbsjVEpAjNh/O4s6U1L8iVFuI+QDD/eZLwPyAE6CgH1O79XeAP053Cvz/6FU4r cw2VJFQq/ZMFJaTKA30/pZYbvrQbx7akKnLLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=u7Qmit4ZuT++gufWuAWbuf6JcQtGuyeCJNW7Uit8SNrNcEXtumq9Mi+0oBy9MSzsXf kDUcjBYtW9wLPsWxETd1gobwrF80j6RB+6rfa2yzXffxDFzzRRlfJRkYiriqAVkzs6FP Ew3j6GQb9mylAgfjRw2CeNjuc3UMjteBMPwZ4= Received: by 10.103.20.7 with SMTP id x7mr2443871mui.75.1218130879752; Thu, 07 Aug 2008 10:41:19 -0700 (PDT) Received: from zembla.universe ( [213.169.62.7]) by mx.google.com with ESMTPS id j10sm36330mue.6.2008.08.07.10.40.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Aug 2008 10:40:57 -0700 (PDT) From: Boris Kotzev To: Jeremy Chadwick Date: Thu, 7 Aug 2008 20:40:55 +0300 User-Agent: KMail/1.9.7 References: <200808071925.45786.boris.kotzev@gmail.com> <20080807165502.GA39420@eos.sc1.parodius.com> In-Reply-To: <20080807165502.GA39420@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200808072040.55571.boris.kotzev@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: zfs - no access to a Mac OS X zfs pool without root privileges X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 17:41:22 -0000 Íà Thursday 07 August 2008 19:55:02 Jeremy Chadwick íàïèñà: > On Thu, Aug 07, 2008 at 07:25:45PM +0300, Boris Kotzev wrote: > > Hello, > > > > I used the zfs port to Mac OS X (http://zfs.macosforge.org) to > > create a storage pool under Mac OS X. The pool can be imported > > successfully under FreeBSD: > > > > root:~-114# zpool import macpool > > root:~-115# zpool list macpool > > NAME SIZE USED AVAIL CAP HEALTH ALTROOT > > macpool 6,94G 510K 6,94G 0% ONLINE - > > root:~-116# zfs list macpool > > NAME USED AVAIL REFER MOUNTPOINT > > macpool 474K 6,83G 308K /macpool > > > > and is fully accessible to the root user: > > > > root:~-118# id > > uid=0(root) gid=0(wheel) groups=0(wheel),5(operator) > > root:~-119# ls -ld /macpool > > drwxr-xr-x 7 root wheel 8 7 ??? 16:59 /macpool > > root:~-120# ls -l /macpool > > total 43 > > drwx------ 3 root wheel 3 7 ??? 16:31 .Spotlight-V100 > > -rw-r--r-- 1 root wheel 35014 7 ??? 16:31 .VolumeIcon.icns > > drwx------ 2 root wheel 4 7 ??? 16:32 .fseventsd > > drwxr-xr-x 2 root wheel 2 7 ??? 16:59 backup > > drwxr-xr-x 2 root wheel 2 7 ??? 16:59 downloads > > drwxr-xr-x 2 root wheel 2 7 ??? 16:58 music > > > > According to the file permissions on /macpool (drwxr-xr-x), > > anyone should have read access to it. This is not the case > > though: > > > > root:~-121# su user > > % id > > uid=1003(user) gid=1003(user) > > groups=1003(user),0(wheel),5(operator) % ls -l /macpool > > ls: /macpool: Permission denied > > % cd /macpool > > /macpool: Permission denied. > > > > Is this a bug, or is there some way to get access to /macpool as > > an ordinary user? > > > > The pool was created under version zfs-119 of the Mac OS X port; > > the FreeBSD version is: > > > > root:~-122# uname -a > > FreeBSD xxxx 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Aug 2 > > 14:19:33 EEST 2008 root@xxxx:/usr/obj/usr/src/sys/MACBOOK amd64 > > > > with the latest zfs patch, but the problem was also present > > before applying the patch. > > As root, what does "zfs get all macpool" return on FreeBSD? root@:~-116# zfs get all macpool NAME PROPERTY VALUE SOURCE macpool type filesystem - macpool creation ×ò Àâã 7 16:31 2008 - macpool used 474K - macpool available 6,83G - macpool referenced 308K - macpool compressratio 1.00x - macpool mounted yes - macpool quota none default macpool reservation none default macpool recordsize 128K default macpool mountpoint /macpool default macpool sharenfs off default macpool checksum on default macpool compression off default macpool atime on default macpool devices on default macpool exec on default macpool setuid on default macpool readonly off default macpool jailed off default macpool snapdir hidden default macpool aclmode groupmask default macpool aclinherit restricted default macpool canmount on default macpool shareiscsi off default macpool xattr off temporary macpool copies 1 default macpool version 1 - macpool utf8only off - macpool normalization none - macpool casesensitivity sensitive - macpool vscan off default macpool nbmand off default macpool sharesmb off default macpool refquota none default macpool refreservation none default Thanks! Boris Kotzev