On 10/26/05, Stewart Stremler <[EMAIL PROTECTED]> wrote:
> begin  quoting John Oliver as of Wed, Oct 26, 2005 at 09:58:19AM -0700:
> > Is it possible to have a file owned by a user that they can read and
> > write to, but not delete or overwrite?
>
> You want read and append rights?
>
> Deleting a file requires write access to the directory containing the
> file.
>
> I don't think *nix offers a way to offer append-only rights to a file.

Learned something new today!

Apparently, the ext2 & ext3 filesystems support this (not sure about
others). The e2fsprogs package (this may be installed by default by
your distro, but I think it was something I had to add manually in
gentoo) includes two programs: lsattr and chattr which list and change
ext2 & 3 specific attributes.

I tried out the append-only flag, and it works! Neat!

Another neat thing I found along the way: More Extended Attributes:
http://enterprise.linux.com/article.pl?sid=05/06/13/1352241&tid=113&tid=70&tid=89

-Jeff


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to