Re: Root can't delete files
From: Jason Kohles (email@jasonkohles.com)Date: 10/11/01
- Previous message: Jose Nazario: "Re: Root can't delete files"
- In reply to: xsdg: "Re: Root can't delete files"
- Next in thread: xsdg: "Re: Root can't delete files"
- Next in thread: Simon Byrnand: "Re: Root can't delete files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 11 Oct 2001 13:53:14 -0400 From: Jason Kohles <email@jasonkohles.com> To: focus-linux@securityfocus.com Subject: Re: Root can't delete files Message-ID: <20011011135314.A18552@mediabang.com>
On Thu, Oct 11, 2001 at 01:09:54AM +0000, xsdg wrote:
>
> Also, to clear up any confusion, the immutable flag only prevents file contents
> from being _removed_. The files can still be appended to. If you use the
> immutable attribute on your logs, you'll probably have to do something to
> logrotate to get it to work correctly...
>
Immutable means immutable, an immutable file cannot be changed (including
appended), there is an 'append only' flag which give the behavior you
describe.
From chattr(1):
A file with the `a' attribute set can only be open in
append mode for writing. Only the superuser can set or
clear this attribute.
A file with the `i' attribute cannot be modified: it can
not be deleted or renamed, no link can be created to this
file and no data can be written to the file. Only the
superuser can set or clear this attribute.
-- Jason S Kohles email@jasonkohles.com http://www.jasonkohles.com/
- Previous message: Jose Nazario: "Re: Root can't delete files"
- In reply to: xsdg: "Re: Root can't delete files"
- Next in thread: xsdg: "Re: Root can't delete files"
- Next in thread: Simon Byrnand: "Re: Root can't delete files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|