Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261624AbVDWQuT (ORCPT ); Sat, 23 Apr 2005 12:50:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261626AbVDWQuT (ORCPT ); Sat, 23 Apr 2005 12:50:19 -0400 Received: from twinlark.arctic.org ([207.7.145.18]:10727 "EHLO twinlark.arctic.org") by vger.kernel.org with ESMTP id S261624AbVDWQuQ (ORCPT ); Sat, 23 Apr 2005 12:50:16 -0400 Date: Sat, 23 Apr 2005 09:50:15 -0700 (PDT) From: dean gaudet To: Xin Zhao cc: linux-kernel@vger.kernel.org Subject: Re: Why Ext2/3 needs immutable attribute? In-Reply-To: <4ae3c14050417085473bd365f@mail.gmail.com> Message-ID: References: <4ae3c14050417085473bd365f@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 711 Lines: 16 On Sun, 17 Apr 2005, Xin Zhao wrote: > Why not simply unset the write bit for all three groups of users? > That seems to be enough to prevent file modification. another usage: if you "chattr +i /var" while /var is unmounted, then root is unlikely to accidentally create files/dirs in /var -- and when you mount the real /var on top it works fine. i tend to protect all my mount points this way (especially those in /mnt) to avoid my own dumb mistakes. -dean - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/