From owner-freebsd-fs@FreeBSD.ORG Thu Aug 7 16:50:07 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 3AA9C1065678 for ; Thu, 7 Aug 2008 16:50:07 +0000 (UTC) (envelope-from boris.kotzev@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.190]) by mx1.freebsd.org (Postfix) with ESMTP id BD7C58FC08 for ; Thu, 7 Aug 2008 16:50:06 +0000 (UTC) (envelope-from boris.kotzev@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so12407gve.39 for ; Thu, 07 Aug 2008 09:50:05 -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:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=ti8MSRstW0qwvhVTZeBQKtaCNd9q5C1h7xAiZTV5g5U=; b=tj4WbGsVx6vRHMaZIC0vEAuJ2BEEm1KHmnS3l+B8vYYUJEXHaasDYARA74YyOjFaVE zg1h35crRSTBkC9C3QSuPWA33pd9kFUMLGK7IZiVSiG4bqUzHhQ+7Rt1J+gWnHNB5XN7 XOSglBF4+EMGCQSGm5dDVAOnfLsWJVftSQioo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=iy2V1go4w+CRJbajTOC7x5UA+vHFLflBx2zFZLVAvacTfcPVScfW1pzI9X5PPgBVLI rlckIc15mgWZxuhn1T2qnXsPkJqDto/BmkhEXTZ4EqqrPAjeziAAJCs/gjkDPN+6Wqgx KjbwNjRo+wmKA/oNo0/BGam3ZQnRpruG38WlE= Received: by 10.103.211.3 with SMTP id n3mr2397654muq.43.1218126349171; Thu, 07 Aug 2008 09:25:49 -0700 (PDT) Received: from zembla.universe ( [213.169.62.7]) by mx.google.com with ESMTPS id b9sm10506500mug.13.2008.08.07.09.25.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Aug 2008 09:25:48 -0700 (PDT) From: Boris Kotzev To: freebsd-fs@freebsd.org Date: Thu, 7 Aug 2008 19:25:45 +0300 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200808071925.45786.boris.kotzev@gmail.com> Subject: 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 16:50:07 -0000 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. Thanks, Boris Kotzev