# -*- sh -*-
#
#     tiger - A UN*X security checking system
#     Copyright (C) 1993 Douglas Lee Schales, David K. Hess, David R. Safford
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 1, or (at your option)
#    any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#     Please see the file `COPYING' for the complete copyright notice.
#
# UNICOS/config - 06/14/93
#
#-----------------------------------------------------------------------------
#

[ "$UUID" = "" ] &&
  UNAME=`/bin/who am i | /usr/bin/awk '{ print $1 }'`

export UNAME

[ "$UNAME" != "root" ] && {
  echo " " 1>&2
  echo "This script should be run from a super-user account." 1>&2
  echo " " 1>&2
#  exit 1
}

CAT=/bin/cat
# Try to use /usr/ucb/ls so that we can use -L option
LS=/usr/ucb/ls
LSGROUP=-g
LSLINK=-L
[ ! -x $LS ] && {
  LS=/bin/ls
  LSGROUP=
  LSLINK=
}
#
RM=/bin/rm
AWK=/usr/bin/awk
GREP=/bin/grep
EGREP=/usr/bin/egrep
SGREP="$GREP -s"
SED=/bin/sed
SORT=/bin/sort
COMM=/usr/bin/comm
TAIL=/bin/tail
MV=/bin/mv
TR=/usr/bin/tr
JOIN=/usr/bin/join
GROUPSS=/usr/ucb/groups
FILECMD=/bin/file
UNIQ=/bin/uniq
BASENAME=/bin/basename
CHMOD=/bin/chmod
CHOWN=/bin/chown
LN=/bin/ln
PASTE=/usr/bin/paste
DIFF=/bin/diff
MAILER=/bin/mail
SENDMAILS="/usr/lib/sendmail"
SENDMAILCF="/usr/lib/sendmail.cf"
export SENDMAILS SENDMAILCF
#
export CAT LS LSGROUP LSLINK RM AWK GREP EGREP SGREP SED
export SORT COMM TAIL MV TR JOIN GROUPSS FILECMD UNIQ BASENAME
export CHMOD CHOWN LN PASTE DIFF MAILER
#
UNAME=/bin/uname
GETHOSTNAME=/bin/hostname
EXPR=/bin/expr
STRINGS=/usr/ucb/strings
FIND=/bin/find
# XDEV is called -mount
FINDXDEV=-mount
# There is no fmt with UNICOS
FMT=/bin/cat
CC=/bin/scc
[ ! -x $CC ] && {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      