From owner-freebsd-fs@FreeBSD.ORG Thu Dec 17 06:37:32 2009 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 479B6106566C; Thu, 17 Dec 2009 06:37:32 +0000 (UTC) (envelope-from benschumacher@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 15B888FC13; Thu, 17 Dec 2009 06:37:32 +0000 (UTC) Received: by pwi15 with SMTP id 15so1222810pwi.3 for ; Wed, 16 Dec 2009 22:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=1E0FpkDu5ihtI7o+fX4bGcKNHSrDs7doNQjgzYsD/YQ=; b=WR2hnPEMYvGdjTDFnFzkdn3UwIjXYamaH0GyNwD47GkycikUZHIrR6YG1JWZIXnGUM 0sdplNVcf+ZauVf8+4SaKuHUvCPEm2fVxyRO77wGu0vX78i1xXcH6khPrkH04JGrYKXp MKjDEEuE2Au0ZQbIvofEKVESLiSiKugsAzc/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=mHKPeBbqIIrNlJX9dxQFUHVR0nj3HYELaiUDgyYg+nI5BNiMnO4SkaXCM623lWu3MQ r7kpGKTRJBoRi4XEG/WwGOgK82463d7CNFro8MT2EUamOLzGXmFY8fD6vAjtp62GT4WY QNYpLhq/gD1mAsONTRN2q7UgdMEl6H3zPhGHw= MIME-Version: 1.0 Sender: benschumacher@gmail.com Received: by 10.142.1.24 with SMTP id 24mr1394430wfa.108.1261031851627; Wed, 16 Dec 2009 22:37:31 -0800 (PST) In-Reply-To: References: <9859143f0912142036k3dd0758fmc9cee9b6f2ce4698@mail.gmail.com> Date: Wed, 16 Dec 2009 23:37:31 -0700 X-Google-Sender-Auth: f9171b267f75b27a Message-ID: <9859143f0912162237q50fe147ej428905abf63c61b@mail.gmail.com> From: Ben Schumacher To: Emil Smolenski Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org, freebsd-questions@freebsd.org Subject: Re: SUIDDIR on ZFS? 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, 17 Dec 2009 06:37:32 -0000 On Tue, Dec 15, 2009 at 7:52 PM, Emil Smolenski wrote: > On Tue, 15 Dec 2009 05:36:55 +0100, Ben Schumacher > wrote: > >> At any rate, I've been considering switching this to a ZFS RAIDZ now >> that FreeBSD 8 is released and it seems that folks think it's stable, >> but I'm curious if it can provide the SUIDDIR functionality I'm >> currently using. > > =C2=A0Yes, it can. From my point of view it works the same way as on UFS. Emil- Thanks for your response... I don't know that that's quite right. SUIDDIR has to be enabled in the kernel as an option to enable the functionality on UFS and my tests on ZFS haven't proved fruitful: $ sudo zfs create zroot/shared $ sudo zfs umount zroot/shared $ sudo zfs mount -o suiddir zroot/shared $ sudo chown sats:office /zroot/shared $ sudo chmod 4770 /zroot/shared $ touch /zroot/shared/file $ ls -al /zroot/shared/ total 4 drwsrwx--- 2 sats office 3 Dec 16 23:26 ./ drwxr-xr-x 4 root wheel 9 Dec 16 23:26 ../ -rw-r--r-- 1 ben office 0 Dec 16 23:26 file With a drive mounted with the 'suiddir' option (and the kernel option enabled) the above works with UFS. I was curious if maybe there was an option in 'zfs set' that I was missing. Any clues would be appreciated. Ben