Dave Wreski wrote:
> > Now, I guess I *could* write a script to check this...
>
> # find / -perm -4000
>
Of course, but I had something else in mind:
#!/bin/bash
for i in `find $* -perm -04000 | tr "\n" " "`
do (if ldd $i | grep "libXaw" > /dev/null
then echo "$i in suid-root and uses Xaw"
fi)
done
which outputs
/usr/X11R6/bin/XConsole in suid-root and uses Xaw
/usr/X11R6/bin/nxterm in suid-root and uses Xaw
on my RHL 4.1 when run like
# ./foo /usr/X11R6/bin
Now another script to run this one for every dir in the path...
Man, I *love* Unix (and bash)... :)
Regards,
sb.
--
"Men of lofty genius are most active
when they are doing the least work".
-- Leonardo da Vinci
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.