From owner-freebsd-questions@FreeBSD.ORG Sun Dec 20 23:20:02 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 F3E8F106566C; Sun, 20 Dec 2009 23:20:01 +0000 (UTC) (envelope-from ambsd@raisa.eu.org) Received: from raisa.eu.org (raisa.eu.org [83.17.178.202]) by mx1.freebsd.org (Postfix) with ESMTP id F02F08FC0C; Sun, 20 Dec 2009 23:20:00 +0000 (UTC) Received: from bolt.zol (62-121-98-25.home.aster.pl [62.121.98.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by raisa.eu.org (Postfix) with ESMTP id AB883241; Mon, 21 Dec 2009 00:23:07 +0100 (CET) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Ben Schumacher" References: <9859143f0912142036k3dd0758fmc9cee9b6f2ce4698@mail.gmail.com> <9859143f0912162237q50fe147ej428905abf63c61b@mail.gmail.com> Date: Mon, 21 Dec 2009 00:19:51 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Emil Smolenski" Message-ID: In-Reply-To: <9859143f0912162237q50fe147ej428905abf63c61b@mail.gmail.com> User-Agent: Opera Mail/10.10 (FreeBSD) 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: Sun, 20 Dec 2009 23:20:02 -0000 On Thu, 17 Dec 2009 07:37:31 +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. >> Yes, it can. From my point of view it works the same way as on UFS. > Thanks for your response... I don't know that that's quite right. In fact, you're right. I used only the "g+s" file mode and it worked for both UFS and ZFS. Sorry for the confusion. > Any clues would be appreciated. Maybe 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------- 1 user1 user1 - 0 Dec 21 00:14 test -- am