From owner-freebsd-questions@FreeBSD.ORG Mon Dec 21 19:01:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72EEF1065670; Mon, 21 Dec 2009 19:01:53 +0000 (UTC) (envelope-from benschumacher@gmail.com) Received: from mail-pz0-f185.google.com (mail-pz0-f185.google.com [209.85.222.185]) by mx1.freebsd.org (Postfix) with ESMTP id 3E92C8FC26; Mon, 21 Dec 2009 19:01:53 +0000 (UTC) Received: by pzk15 with SMTP id 15so3736713pzk.3 for ; Mon, 21 Dec 2009 11:01:53 -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=DmlAHvKwjig1TrFKRbFruqbbEZskBVmuAsVQKbzScpk=; b=cr3GM6svOJXuWaChrRsXAAQyY4r6I9R+qyx5R3mdHbRlyjA9veOdlVIFXF58+LaTpr DTDKhfi2EFRc7LbjS9jFMI3aQpCLN0PrPzMK2OSA+nxN06UlftrNz0HUzEX7sVInvpn8 Cx7LgclhWtDM0+gtlAnsx/ij2mTLN/g8gbdvk= 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=nuynsZbD5ixDc2Gu7G5d2raFginSYJYDl69rhlPB5PoRlKp6rJK99hN5VwIK5p9Zd8 kExhGpMp0bSWCyFxN2m7Vr3pXQRH7yoCT5LBpe+a/ZN3Ckks+QDKGpsDxbC97RmmzFa5 P4b9KBslBArwRUQu9pMX8OuakzG2Dh0V36wG0= MIME-Version: 1.0 Sender: benschumacher@gmail.com Received: by 10.143.21.34 with SMTP id y34mr5103988wfi.16.1261422112761; Mon, 21 Dec 2009 11:01:52 -0800 (PST) In-Reply-To: References: <9859143f0912142036k3dd0758fmc9cee9b6f2ce4698@mail.gmail.com> <9859143f0912162237q50fe147ej428905abf63c61b@mail.gmail.com> Date: Mon, 21 Dec 2009 12:01:52 -0700 X-Google-Sender-Auth: d16fa3c567c6d856 Message-ID: <9859143f0912211101v18dc4f4bjd0ee55bf5846dc35@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-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2009 19:01:53 -0000 On Sun, Dec 20, 2009 at 4:19 PM, Emil Smolenski wrote: > =C2=A0In fact, you're right. I used only the "g+s" file mode and it worke= d for > both UFS and ZFS. Sorry for the confusion. > >> Any clues would be appreciated. > > =C2=A0Maybe ZVOL will be sufficient? It just works: > > # zfs create -V 1g tank/tmp/test1 > # newfs /dev/zvol/tank/tmp/test1 > # mkdir /tmp/test1 > # mount -o suiddir /dev/zvol/tank/tmp/test1 /tmp/test1 > # mkdir /tmp/test1/user1dir > # chmod 4777 /tmp/test1/user1dir > # chown user1:user1 /tmp/test1/user1dir > # su - user2 > $ cd /tmp/test1/user1dir > $ touch test > $ ll test > -rw------- =C2=A01 user1 =C2=A0user1 =C2=A0- 0 Dec 21 00:14 test Emil- Yes. That works. I had that thought shortly after sending my last email. I'm going to try it. I guess the downside is that it doesn't give me the dyanmic size abilities of ZFS, but I can probably just dedicate a large chunk of storage to the ZVOL. Thanks, Ben