Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 12:01:52 -0700
From:      Ben Schumacher <me@benschumacher.com>
To:        Emil Smolenski <ambsd@raisa.eu.org>
Cc:        freebsd-fs@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: SUIDDIR on ZFS?
Message-ID:  <9859143f0912211101v18dc4f4bjd0ee55bf5846dc35@mail.gmail.com>
In-Reply-To: <op.u49e3astqvde5b@bolt.zol>
References:  <9859143f0912142036k3dd0758fmc9cee9b6f2ce4698@mail.gmail.com> <op.u40flvqdqvde5b@bolt.zol> <9859143f0912162237q50fe147ej428905abf63c61b@mail.gmail.com> <op.u49e3astqvde5b@bolt.zol>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 20, 2009 at 4:19 PM, Emil Smolenski <ambsd@raisa.eu.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9859143f0912211101v18dc4f4bjd0ee55bf5846dc35>