From: Borislav Petkov Subject: chattr non-root users Date: Sat, 22 Jan 2005 20:39:17 +0100 Message-ID: <200501222039.17256.petkov@uni-muenster.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from ZIVLNX01.UNI-MUENSTER.DE ([128.176.188.24]:37861 "EHLO ZIVLNX01.uni-muenster.de") by vger.kernel.org with ESMTP id S262637AbVAVTij (ORCPT ); Sat, 22 Jan 2005 14:38:39 -0500 Received: from localhost (unknown [127.0.0.1]) by ZIVLNX01.uni-muenster.de (Postfix) with ESMTP id 0A44B36854 for ; Sat, 22 Jan 2005 20:38:38 +0100 (CET) Received: from ZIVLNX01.uni-muenster.de ([127.0.0.1]) by localhost (ZIVLNX01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30319-10 for ; Sat, 22 Jan 2005 20:38:37 +0100 (CET) Received: from gollum.tnic (RAS23-006.UNI-MUENSTER.DE [128.176.236.7]) by ZIVLNX01.uni-muenster.de (Postfix) with ESMTP id D8B3E3685B for ; Sat, 22 Jan 2005 20:38:36 +0100 (CET) To: linux-fsdevel@vger.kernel.org Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi there, I'm trying to do chattr +i as a non root user and my /home is ext3 (/dev/hda3 on /home type ext3 (rw,noatime,data=journal,commit=600)), but chattr returns: chattr: Operation not permitted while setting flags on Root does not suffer under such restrictions, so can anyone enlighten me on the reasons behind not allowing non root users to make files in their homes immutable. Searching the archives didn't reveal much except that it confirmed my speculations that not allowing file attribute manipulations by non-root users could be a kind of security measure. hm.. Thanks in advance, Boris. "... i The 'i' attribute stands for "immutable", this offers a level of protection against deletion. The 'i' attribute can only be added/removed to/from a files attribute by the 'root' user."[1] [1] "Understanding chattr." MeanPC, 2004.