When listing all suid and sgid files list the file itself rather than
directorty contents.
This commit is contained in:
parent
4e2fe971b0
commit
81a2c9ce58
@ -1,7 +1,7 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# @(#)security 5.3 (Berkeley) 5/28/91
|
||||
# $Id: security,v 1.3 1993/09/06 23:12:04 rgrimes Exp $
|
||||
# $Id: security,v 1.4 1993/10/25 20:13:16 rgrimes Exp $
|
||||
#
|
||||
PATH=/sbin:/bin:/usr/bin
|
||||
|
||||
@ -21,7 +21,7 @@ echo "checking setuid files and devices:"
|
||||
#
|
||||
MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $3 }'`
|
||||
set $MP
|
||||
ls -lgT `while test $# -ge 1; do
|
||||
ls -dlgT `while test $# -ge 1; do
|
||||
mount=$1
|
||||
shift
|
||||
find $mount -xdev -perm -u+s -or -perm -g+s | sort
|
||||
|
Loading…
Reference in New Issue
Block a user