/usr/lib/tiger/systems/IRIX/config is in tiger-otheros 1:3.2.3-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | #
# 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.
#
# IRIX/config - 06/14/93
#
# Thanks to Steve Rikli for the revised config file
#
# 09/19/2003 - jfs - Added UUID definition (untested)
#
#-----------------------------------------------------------------------------
#
#UUID=`/usr/bin/id | /bin/sed -e 's/uid=\([0-9][0-9]*\).*$/\1/'`
UUID=`id -u`
USERNAME=`whoami`
# This will work in most shells
[ "$UUID" = "" ] && UUID=$UID
[ "$USERNAME" = "" ] && USERNAME=$USER
# Last resort
[ "$UUID" = "" -a ! "$USERNAME" = "" ] && {
# Try this and see it works
UUID=`grep ^$USERNAME: /etc/passwd |awk -F : '{print $3}'`
}
export UUID
AWK=/usr/bin/awk
export AWK
BASENAME=/bin/basename
export BASENAME
CAT=/bin/cat
export CAT
CC=/usr/bin/cc
export CC
CHMOD=/bin/chmod
export CHMOD
CHOWN=/bin/chown
export CHOWN
COMM=/usr/bin/comm
export COMM
DATE=/bin/date
export DATE
EGREP=/usr/bin/egrep
export EGREP
EXPR=/bin/expr
export EXPR
FILECMD=/bin/file
export FILECMD
FIND=/bin/find
export FIND
FMT=/bin/cat
export FMT
GETHOSTNAME='/bin/uname -n'
export GETHOSTNAME
GREP=/bin/grep
export GREP
GROUPSS=/usr/bin/groups
export GROUPSS
JOIN=/usr/bin/join
export JOIN
LN=/bin/ln
export LN
LS=/bin/ls
export LS
MV=/bin/mv
export MV
PS=/bin/ps
export PS
RM=/bin/rm
export RM
SED=/bin/sed
export SED
SORT=/bin/sort
export SORT
STRINGS=/bin/strings
export STRINGS
TAIL=/bin/tail
export TAIL
TR=/usr/bin/tr
export TR
UNAME=/bin/uname
export UNAME
UNIQ=/usr/bin/uniq
export UNIQ
PASTE=/usr/bin/paste
export PASTE
YPCAT=/usr/bin/ypcat
export YPCAT
#
YP=
($PS -elf | $GREP ypbind | $GREP -v $GREP) >/dev/null 2>&1 && YP=YES
export YP
#
YPSERVER="NO"
($PS -elf | $GREP ypserv | $GREP -v $GREP) >/dev/null 2>&1 && YPSERVER="YES"
export YPSERVER
#
WAIT=wait
export WAIT
DIFF=/bin/diff
export DIFF
MAILER=/usr/sbin/Mail
export MAILER
SENDMAILS="/usr/lib/sendmail"
SENDMAILCF="/usr/lib/sendmail.cf"
export SENDMAILS SENDMAILCF
#
# How to get different effects
#
DATECMD="$DATE +%y%m%d"
TIMECMD="$DATE +%H:%M"
export DATECMD TIMECMD
SGREP="$EGREP -s"
export SGREP
LSGROUP=-l
export LSGROUP
LSLINK=-L
export LSLINK
TESTLINK=-l
export TESTLINK
TESTEXEC=-x
export TESTEXEC
FINDXDEV="-mount -local"
export FINDXDEV
#
# Geez... how can you compile anything in SGI's default mode
#
CFLAGS=-cckr
export CFLAGS
CLIBS=-lsun
export CLIBS
#
if [ -d /usr/mail ]; then
MAILSPOOL=/usr/mail
elif [ -d /var/mail ]; then
MAILSPOOL=/var/mail
elif [ -d /usr/spool/mail ]; then
MAILSPOOL=/usr/spool/mail
elif [ -d /var/spool/mail ]; then
MAILSPOOL=/var/spool/mail
else
MAILSPOOL=
fi
export MAILSPOOL
#
if [ -d /var/spool/cron/crontabs ]; then
CRONSPOOL=/var/spool/cron/crontabs
elif [ -d /usr/spool/cron/crontabs ]; then
CRONSPOOL=/usr/spool/cron/crontabs
elif [ -d /etc/cron/crontabs ]; then
CRONSPOOL=/etc/cron/crontabs
elif [ -d /usr/lib/cron/crontabs ]; then
CRONSPOOL=/usr/lib/cron/crontabs
else
CRONSPOOL=
fi
export CRONSPOOL
# This isn't implemented in IRIX. -sr.
#ETCSHELLS=/etc/shell
#export ETCSHELLS
#
# Segment of code to find system specific tiger parts
#
CDIR="$BASEDIR/systems"
eval `
while read var file
do
if [ -f "$CDIR/$OS/$REL/$REV/$ARCH/$file" ]; then
loc="$CDIR/$OS/$REL/$REV/$ARCH"
elif [ -f "$CDIR/$OS/$REL/$REV/$file" ]; then
loc="$CDIR/$OS/$REL/$REV"
elif [ -f "$CDIR/$OS/$REL/$file" ]; then
loc="$CDIR/$OS/$REL"
elif [ -f "$CDIR/$OS/$file" ]; then
loc="$CDIR/$OS"
elif [ -f "$CDIR/default/$file" ]; then
loc="$CDIR/default"
else
loc=""
fi
if [ "$loc" != "" ]; then
echo $var="$loc/$file;"
else
echo "$var=;"
fi
echo "export $var;"
done << EOL
GETFS gen_mounts
GEN_PASSWD_SETS gen_passwd_sets
GEN_GROUP_SETS gen_group_sets
GEN_ALIAS_SETS gen_alias_sets
CHECK_CRON check_cron
GEN_BOOTPARAM_SETS gen_bootparam_sets
GEN_EXPORT_SETS gen_export_sets
GEN_SERVICES_SETS gen_services
GET_MOUNTS gen_mounts
SIGNATURE_FILE signatures
SERVICESFILE services
INETDFILE inetd
FILE_ACL file_access_list
SUID_LIST suid_list
REL_FILE_EXCP rel_file_exp_list
GEN_CRON_FILES gen_cron
GETCLIENTDIRS gendlclients
GEN_INETD_SETS gen_inetd
GETDISKS getdisks
EMBEDDEDLIST embedlist
GETUSERHOME getuserhome
EOL
`
|