summaryrefslogtreecommitdiffstats
path: root/etc/security
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-09-15 00:22:31 +0000
committerache <ache@FreeBSD.org>1995-09-15 00:22:31 +0000
commit66a1f35e318d659af51c0a55aa16a239b2b2efc8 (patch)
treed6d41084cbcb70a0d159318623ca6e26ceb24f56 /etc/security
parent10fa447e275871a2fd9a0ad3dc844626eb638283 (diff)
downloadFreeBSD-src-66a1f35e318d659af51c0a55aa16a239b2b2efc8.zip
FreeBSD-src-66a1f35e318d659af51c0a55aa16a239b2b2efc8.tar.gz
If no $LOG/setuid.today exists (f.e. first time to run), put
warning and make it, all following commands fails in old case
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/security b/etc/security
index 19d1bcb..b5cdfd4 100644
--- a/etc/security
+++ b/etc/security
@@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)security 5.3 (Berkeley) 5/28/91
-# $Id: security,v 1.7 1995/01/14 13:23:50 ats Exp $
+# $Id: security,v 1.8 1995/05/27 01:37:44 ache Exp $
#
PATH=/sbin:/bin:/usr/bin
@@ -27,6 +27,10 @@ while test $# -ge 1; do
find $mount -xdev \( -perm -u+s -or -perm -g+s \) | sort
done | xargs -n 20 ls -lgTd > $TMP
+if [ ! -f $LOG/setuid.today ] ; then
+ echo "no $LOG/setuid.today"
+ cp $TMP $LOG/setuid.today
+fi
if cmp $LOG/setuid.today $TMP >/dev/null; then :; else
echo "$host setuid/device diffs:"
diff -b $LOG/setuid.today $TMP
OpenPOWER on IntegriCloud