[Aide] How to make aide print file details of an arbitrary file?

Marc Haber mh+aide at zugschlus.de
Sun Nov 5 22:30:02 EET 2006


On Sun, Nov 05, 2006 at 02:05:59PM +0100, Richard van den Berg wrote:
> Marc Haber wrote:
> > Is there any way to get aide details of any given file short of
> > generating a single-line database that recognizes the file as "changed
> > in all details", which I have not yet been very successful in doing?
> 
> Why not? Generate a single-line database for /dev/null and edit it
> afterwards so that /dev/null is replaced by the path of your aide.db
> file. Then use it to check for changes in aide.db and all attributes
> should be reported as changed. Or am I missing something obvious here?

Editing the database was not among the things I tried.

With some minor quirk, it works: When /dev/null is used to initialize
the db, the checksums are written to the db as "0", and are not
reported as changed when checking against the database after editing
the file name. Using an existing file like /etc/hosts, everything is
fine. Thanks for this neat idea.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


More information about the Aide mailing list