Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261440AbVDQTp2 (ORCPT ); Sun, 17 Apr 2005 15:45:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261439AbVDQTp1 (ORCPT ); Sun, 17 Apr 2005 15:45:27 -0400 Received: from quechua.inka.de ([193.197.184.2]:53451 "EHLO mail.inka.de") by vger.kernel.org with ESMTP id S261441AbVDQTpQ (ORCPT ); Sun, 17 Apr 2005 15:45:16 -0400 From: Bernd Eckenfels To: linux-kernel@vger.kernel.org Subject: Re: Why Ext2/3 needs immutable attribute? Organization: Private Site running Debian GNU/Linux In-Reply-To: <4ae3c14050417085473bd365f@mail.gmail.com> X-Newsgroups: ka.lists.linux.kernel User-Agent: tin/1.7.8-20050315 ("Scalpay") (UNIX) (Linux/2.6.8.1 (i686)) Message-Id: Date: Sun, 17 Apr 2005 21:45:13 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 635 Lines: 20 In article <4ae3c14050417085473bd365f@mail.gmail.com> you wrote: > Why not simply unset the write bit for all three groups of users? > That seems to be enough to prevent file modification. # touch test # chmod a-w test # echo test > test # cat test test Because this does not protect against writes from root and it does not protect against root setting the flags again. Greetings Bernd - 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/