From e15e6084f69b551d827a95609d2e4c9b01f9ba27 Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Sat, 22 Jan 1994 10:54:13 +0000 Subject: [PATCH] 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 --- etc/security | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/etc/security b/etc/security index 1e9eda6e195f..37d7d6ee3f59 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:"