Date: Thu, 31 Oct 1996 09:32:18 +1000 (EST) From: Clary Harridge <clary@elec.uq.edu.au> To: freebsd-security@freebsd.org Subject: /etc/security Message-ID: <199610302332.JAA21364@s5.elec.uq.edu.au>
next in thread | raw e-mail | index | archive | help
A suggestion for /etc/security
The current version falls over when checking for suid / sgid files
when the file names contain spaces. These file names are generated
by win95 when your FreeBSD host runs as a samba server.
Any such suid files just get dropped by the find but give errors.
You get lots of errors like
find: /u1/staff/matt/Mail/ GPutland: illegal path
find: /u1/staff/matt/Mail/ Email: illegal path
I would suggest
REPLACING
================================================================
while test $# -ge 1; do
mount=$1
shift
find -X $mount -xdev -type f \
\( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
\( -perm -u+s -or -perm -g+s \) | sort
done | xargs -n 20 ls -lgTd > $TMP
================================================================
WITH
================================================================
find $mount -xdev -type f \
\( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
\( -perm -u+s -or -perm -g+s \) -a -exec ls -lgTd {} ";"
done > $TMP
================================================================
--
regards Dept. of Electrical Engineering,
Clary Harridge University of Queensland, QLD, Australia, 4072
Phone: +61-7-3365-3636 Fax: +61-7-3365-4999
INTERNET: clary@elec.uq.edu.au
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610302332.JAA21364>
