summaryrefslogtreecommitdiffstats
path: root/etc/security
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-01-22 10:54:13 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-01-22 10:54:13 +0000
commit941cae5887a911da5af00a634c39a31a0f754457 (patch)
treeea3af440ced39ac22770feac04853da2837dc5bc /etc/security
parent3094433eba878a1aeb091dd97f9567bef9ed4aab (diff)
downloadFreeBSD-src-941cae5887a911da5af00a634c39a31a0f754457.zip
FreeBSD-src-941cae5887a911da5af00a634c39a31a0f754457.tar.gz
From: rich@lamprey.UTMB.EDU (Rich Murphey)
Subject: Re: daily insecurity output (fwd) |From: rgrimes@agora.rain.com (Rodney Grimes) | |This is from the new /etc/security script. I no longer get the segmentation |violation, but now the arg list is too long, some /bin/sh program want to |fix the current /etc/security ls command so that it is a pipe insteal of |a back quoted arg? | |> checking setuid files and devices: |> /etc/security: ls: argument list too long This uses xargs instead. My slip line's down so I can't check it in at the moment. Rich
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security17
1 files changed, 3 insertions, 14 deletions
diff --git a/etc/security b/etc/security
index 1e9eda6..37d7d6e 100644
--- a/etc/security
+++ b/etc/security
@@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)security 5.3 (Berkeley) 5/28/91
-# $Id: security,v 1.4 1993/10/25 20:13:16 rgrimes Exp $
+# $Id: security,v 1.5 1993/12/15 06:42:01 rich Exp $
#
PATH=/sbin:/bin:/usr/bin
@@ -21,22 +21,11 @@ echo "checking setuid files and devices:"
#
MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $3 }'`
set $MP
-ls -dlgT `while test $# -ge 1; do
+while test $# -ge 1; do
mount=$1
shift
find $mount -xdev -perm -u+s -or -perm -g+s | sort
-done` > $TMP
-
-#MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $1 " " $3 }'`
-#set $MP
-#ls -lgT `while test $# -ge 2; do
-# device=$1
-# shift
-# mount=$1
-# shift
-# ncheck -s $device | sed -e "/:$/d" -e "/\/dev\//d" \
-# -e "s;[^/]*;$mount;" -e "s;//;/;g" | sort
-#done` > $TMP
+done | xargs -n 20 ls -lgTd > $TMP
if cmp $LOG/setuid.today $TMP >/dev/null; then :; else
echo "$host setuid/device diffs:"
OpenPOWER on IntegriCloud