diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1993-10-25 20:13:16 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1993-10-25 20:13:16 +0000 |
| commit | 352c89cfb59f296ecd5ac64569340f7cf2b9e243 (patch) | |
| tree | 7050bc60a5404e7c1aaef0aa130a96caaa4fb2d3 /etc/security | |
| parent | a577a6588def3a7dc0f69596d663061fc538e43b (diff) | |
Notes
Diffstat (limited to 'etc/security')
| -rw-r--r-- | etc/security | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/etc/security b/etc/security index 30533acd09afd..41a09312f7ad9 100644 --- a/etc/security +++ b/etc/security @@ -1,7 +1,7 @@ #!/bin/sh - # # @(#)security 5.3 (Berkeley) 5/28/91 -# $Id$ +# $Id: security,v 1.3 1993/09/06 23:12:04 rgrimes Exp $ # PATH=/sbin:/bin:/usr/bin @@ -19,15 +19,13 @@ echo "checking setuid files and devices:" # note that one of the original problem, the possibility of overrunning # the args to ls, is still here... # -# add this after -a when find supports isofs, and you don't want to check -# your cd roms -# \( ! \( -fstype isofs \) -o -prune \) \ -# do skip checking cdroms - -find / -fstype local -a \ - \( -perm -u+s -or -perm -g+s \) | \ - sed -e "/\/dev\//d" -e "s;//;/;g" | sort | xargs -n 20 ls -lgT > $TMP - +MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $3 }'` +set $MP +ls -lgT `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 |
