alternative for user immutable flag on ZFS

Damien Fleuriot ml at my.gd
Thu Oct 13 16:37:14 UTC 2011


On 10/13/11 6:12 PM, Michael wrote:
> Hello,
> 
> I have some important files in my home directory and I want to make sure
> that they are not changed/removed by my mistake.
> 
> So I'm looking for something that prevents all programs (like rm) from
> changing these files even if I tell them to do so. But then on some rare
> occasions I really need to modify them so there must be a way of
> clearing these restrictions. And all that from my user account without
> root privileges.
> 
> Normally I would set user immutable flag, which can be manually cleared
> in case when I know what I'm doing. The problem is that I can't get them
> to work on ZFS and it looks that it's not supported.
> 
> Are there any alternatives or different ways to achieve my goal? I'm
> using FreeBSD 8.2-Release.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"


Something that would part address your problem is taking snapshots of
the directory with your important files...

Sure, this doesn't replace the immutable flag, but it surely achieves
what you want.


More information about the freebsd-questions mailing list