SUIDDIR on ZFS?

Ben Schumacher me at benschumacher.com
Mon Dec 21 19:01:53 UTC 2009


On Sun, Dec 20, 2009 at 4:19 PM, Emil Smolenski <ambsd at raisa.eu.org> wrote:
>  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

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


More information about the freebsd-fs mailing list