zfs - no access to a Mac OS X zfs pool without root privileges
Jeremy Chadwick
koitsu at FreeBSD.org
Thu Aug 7 16:55:03 UTC 2008
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 at 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?
--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, USA |
| Making life hard for others since 1977. PGP: 4BD6C0CB |
More information about the freebsd-fs
mailing list