Re: Root can't delete filesFrom: R Dicaire (firstname.lastname@example.org)
- Previous message: Seth Arnold: "Re: Identd DoS Attacks"
- Maybe in reply to: Thanas: "Root can't delete files"
- Next in thread: Tosoni: "RE: Root can't delete files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Message-Id: <200110111820.f9BIKoW14977@rdb.linux-help.org> Date: Thu, 11 Oct 2001 18:20:50 -0000 To: "Focus-Linux" <email@example.com> Subject: Re: Root can't delete files From: "R Dicaire" <firstname.lastname@example.org>
Forwarded From: xsdg <email@example.com>
> Also, to clear up any confusion, the immutable flag only prevents file
> 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...
the +a flag to chattr sets whether a file can be appended to. If the file is
set +i, it cannot be appended to. From the chattr man page:
A file with the `a' attribute set can only be open in append mode for
Only the superuser can set or clear this attribute.
A file with the `i' attribute cannot be modified: it cannot 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.