man chk_local_dirs



  NAME
         chk_local_dirs.ksh - Check mode and ownersthip of directories (and files)

  SYNOPSIS
         chk_local_dirs.ksh [-make] [-fix] [-list] [filename|local [...]]

  DESCRIPTION
         The   chk_local_dirs.ksh   script   is  distributed  with  uaxtools  and  uses  the
         etc/local.dirs file to validate directory (or file, or link) mode and ownership  on
         a  system.   Often  it  is  invoked from a script using push, dsh, pdsh, or xdsh to
         check permissions on a collection of systems.  This script is intended  as  both  a
         securty monitoring script and for validation in environment where re-provisionining
         UNIX|Linux workstations is a frequent occurence.

         The directory list takes the form of;
          host:  type mode owner group name # from hostname
          uname: type mode owner group name # from uname -r
          :type  type mode owner group name # from machines.linux
          :os    type mode owner group name # from machines.linux
          :      type mode owner group name # generic (none of above)

         A null host (simple :) is used for matching any system (shared local.dirs), see the
         provided example.  Precedence is order listed above (most to least significant).

  OPTIONS
         -make  to issue mkdir for missing directories.

         -fix   to fix inappropriate mode or ownership.

         -x     to use 'echo' vs. sudo for -make or -fix (e.g., preview).

         -list  to list default and actual.

         -root directory
                to specify an althernate root.

         -type type
                to specify an alternate machines.linux type.

         -os os to specify an alternate machines.linux os (major).

         -name name
                to  specify  an alternate machine.linux machine which will also set type and
                os based on that name.

  ACKNOWLEDGEMENTS
         Written at the University of Alaska.  Ongoing maintenance via SourceForge by Denali
         Sun Consulting.

         Suggestions or bug reports can be directed to denalisun907@gmail.com.

  RELATED INFORMATION
         See: uaxtools(8), push(8).