From owner-freebsd-questions@FreeBSD.ORG Thu Oct 13 16:37:14 2011 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 AC94A1065675 for ; Thu, 13 Oct 2011 16:37:14 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4B1708FC1A for ; Thu, 13 Oct 2011 16:37:13 +0000 (UTC) Received: by wwe3 with SMTP id 3so1970286wwe.31 for ; Thu, 13 Oct 2011 09:37:13 -0700 (PDT) Received: by 10.216.177.138 with SMTP id d10mr1400202wem.98.1318523833249; Thu, 13 Oct 2011 09:37:13 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id n21sm7113285wbp.2.2011.10.13.09.37.11 (version=SSLv3 cipher=OTHER); Thu, 13 Oct 2011 09:37:12 -0700 (PDT) Message-ID: <4E9713B6.4010503@my.gd> Date: Thu, 13 Oct 2011 18:37:10 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4E970E02.1090202@gmail.com> In-Reply-To: <4E970E02.1090202@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: alternative for user immutable flag 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: Thu, 13 Oct 2011 16:37:14 -0000 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@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.