#!/bin/ksh -p
# $Id: //depot/stable/explorer/tools/secure#2 $
#
#  Secure data collection will not run by default.
#  It must be enabled with the -w switch (-w secure,default)
#  This module collects files of a secure nature and should
#  be discussed with the customer before being used.
#
# Explorer Version:
EXP_VERSION=4.0
#

# Source tools functions
. ${EXP_LIB}/exp_tools

# Run if specified to do so
script=${0##*/}
which_gate_exit $script

ROOTDIR=`awk -F':' ' ($1=="root") { print $6 } ' /etc/passwd`

get_file "/etc/passwd"        etc/
get_file "/etc/group"         etc/
get_file "/etc/hosts.equiv"   etc/shells/
get_file "${ROOTDIR}/.rhosts" etc/shells/rhosts!
