mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 12:07:10 +01:00
When listing all suid and sgid files list the file itself rather than
directorty contents.
This commit is contained in:
parent
ca3921c30f
commit
8183c46907
@ -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