OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Jason Kohles (emailjasonkohles.com)
Date: Thu Oct 11 2001 - 12:53:14 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    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
    emailjasonkohles.com          http://www.jasonkohles.com/