| avatar(1) | CyberSoft VFind Security Toolkit Professional | avatar(1) |
| Avatar - File System Baselining Tool |
| avatar command root baseline [arguments] |
|
avatar is a system for maintaining the state of a file system in a baseline and uses that baseline to check and correct the contents of file systems. avatar can be used:
When it determines that one or more of these attributes is incorrect, avatar can restore the attributes to their recorded state. Which attributes are recorded for which files is completely configurable. The root of the file system used is specified with most avatar commands. This allows a baseline created using the contents of one file system to be used to check and correct many different file systems located at various places in a file system hierarchy. |
LICENSESavatar requires a LICENSE file to run. This LICENSE file is host specific, therefore avatar will only run on the licensed machine. Additional licenses may be purchased by contacting:CyberSoft, Inc. At startup, avatar searches for the LICENSE file in these locations: Avatar Command Usageavatar has eight modes of operation: create, update, iupdate, add, delete, configuration, check, and correct. The first six commands create, examine and modify the baseline. The last two use the baseline to check and/or correct individal files, directory hierarchies, or whole file systems. Each of these commands is invoked by invoking the avatar program with the command name as its first argument. For example:
avatar create foo bar n.cfg
Most commands take other arguments as well which come after the function name (i.e., ``foo'', ``bar'' and ``n.cfg'' above). They will be explained in the entry for each command. In general, though, most commands have root and baseline as their first two arguments. These are the root of the file system to be used and the name of the baseline directory to be used (or created) respectively. The ConfigurationEverything in a baseline maintained by avatar is controlled by the baseline's configuration. The configuration describes what files and directories to check and what attributes to check for each of them. The configuration is initialized by the create command from a configuration file.An example of a possible real configuration is to protect the entire file system with the exception of /home and /logs. The configuration file used to initialize this configuration via the create command could look like:
E /
! /home
! /logs
The configuration can also allow the system to record varying sets of attributes for different files and directories. It also allows the specification of a directory to be recursively baselined with certain files and subdirectories excluded or recorded with different attributes. Configuration File FormatThe configuration file is used by create to control the initial configuration of the baseline. Once created, the configuration is part of the baseline and can be modified by add or delete. It can be queried by the configuration command.Each line of the configuration file contains a pathname to be baselined which can be either a file, special file, or a directory. Each pathname is prefixed by a list of the attributes to baseline, followed by a space. The attributes are represented by single letters as follows: e = existence Thus, a configuration file that consisted of the single line:
E /
baselines the entire file system.
Individual files or directories listed can form exceptions
to the attributes listed for a recursively baselined
directory. So, if the above configuration file had the
line.
!R /var
then /var and its contents would not be baselined.
The CommandsThe description of each command begins with its invocation. The parameters for all commands are order dependent and are labeled with names in italics. Optional parameters are enclosed in square brackets.
Explanation of Alternate DatabaseSince avatar will only maintain files specified in the configuration, it may be desirable to locate some or all of the baseline on a central system for access via NFS or on a CD-ROM. The alternate baseline function provides a baseline that is only used by the check and correct commands.The alternate baseline may be used if there is a failure of the primary baseline during the operation of the check or correct commands. If the program was able to obtain the reference to the alternate database before the failure of the primary one, it can be used instead. This would be useful in the case of a network failure where the primary baseline is contained remotely. A smaller, secondary baseline of very critical files may be contained on the unit operating. If, during a correct operation, a file is found to have an incorrect cryptographic signature and the file contents are not contained in the primary baseline, then the alternate baseline is consulted. The alternate baseline may also be used if there is an explicit file argument to the check or correct commands. If the file isn't in the configuration of the primary baseline, these programs check for it in the alternate baseline. Lastly, alternate baselines may be explicitly used in scripts that invoke avatar. Avatar always exits with status 23 if, upon initialization, it can't access the specified baseline. This exit status can then be checked in a script to automatically reinvoke avatar, explicitly pointing to an alternate baseline. Simple Introductory UseCreate a directory of data you wish to baseline; call it /data.Create a config file called avatar.cfg with the single line:
E /data
That says to baseline everything in all files.
Enter the following command:
avatar create / baseline avatar.cfg
Examine the output; it should reflect baselining everything in
/data.
Run `avatar configuration / baseline'; that should just regurgitate the contents of avatar.cfg. Run `avatar spew / baseline'; this undocumented function lists the entire baseline contents. Run `avatar check / baseline'; this should produce no output as nothing has been changed. Run `avatar update / baseline'; again, there should be no output because nothing has changed. Modify a file somewhere in /data. Perform a check followed by an update followed by another check. The first check should report the change; the update should report incorporating the change; the second check should report nothing, since nothing's been changed since the last update. Modify another file in /data. Perform a check, followed by `avatar correct / baseline', followed by another check. |
| LICENSE |
| vfind(1), cit(1), thd(1), |
| Please report all bugs to support@cyber.com Make sure to include the version of avatar, the platform and OS, the script or command used, the complete output showing the bug, a short description of the problem, and contact information. |
| © 1999-2000 CyberSoft, Inc. All rights reserved. |
| avatar(1) | CyberSoft VFind Security Toolkit Professional | avatar(1) |