This dirs_filestat_objects.cfg example specifies system directory ownerships and permissions. Based on this data, scripts might report and fix broken file attributes.
///////////////////////////////////////////////////////////////////////////////
//
// dirs_filestat_objects.cfg
//
///////////////////////////////////////////////////////////////////////////////
DirsFileStat
// used by DirsFileStat alarm; only specify below attributes that must be
// true of every file/dir in a directory, otherwise if it doesn't matter,
// indicate with a . (dot)
//
// recursive '+' means apply to the dir and all subdirs; recursive '-' means
// just apply to the top-level dir
//
// let's be conservative about what we mandate here, so as not to break
// anything
//
// also, remember to expand this list at a later date, perhaps doing
// checks on some dirs less frequently than on others; this object list
// could grow to be quite long someday!
// dir perms owner group recursive
/bin .r......-. . . -
/usr/bin .r......-. . . -
/etc .r......-. . . -
/usr/lib .r..r..r-. . . -
#if solaris
/opt .r......-. . . -
/etc/rc3.d .r......-- root sys -
#endif
/root .r.....--- . . +
/sbin .r......-. . . -
/usr .r......-. . . -
// /var .r........ . . -
#if ! linux
/var/adm .r......-. . . -
#endif
/var/log .r......-. . . -
[...]
///////////////////////////////////////////////////////////////////////////////
// local stuff follows
#if vienna
/opt/local/lib .rw.r-.r-. root . -
/usr/local/lib .rw.r-.r-. root . -
#endif
[...]
///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install the DirsFileStat.obj file to each PIKT slave system with this example command:
# piktc -iv +O DirsFileStat +H all [or: ... -H downsys]
[For more examples, see Samples.]
Home |
FAQ |
News |
Intro |
Samples |
Tutorial |
Reference |
Software |
Authors |
Licensing |
SiteSearch
Links |
SiteIndex |
Pikt-Users |
Pikt-Workers |
Contribute |
ContactUs |
Top of Page
Page best viewed at 1024x768.
Page last updated 2005-06-22.
This site is
PIKT®
powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund. All rights reserved.
|