Finding and Eliminating setuid/setgid Binaries Eliminate potential root exploits before they have a chance to happen [Discuss (1) | Link to this hack]
Comments on this hack
Showing messages 1 through 1 of 1.
-exec is superfluous
2003-04-14 14:49:28
aristotle
[View]
Although efficiency is not really a concern, it's worth knowing that GNU find has an "-ls" predicate, which does just what this hack is proposing "-exec ls -ld {} \;" for. So we're down to
find -perm +6000 -type f -ls
which is much easier to type and formulate. Of course, while its much better efficiency is not a concern here, it might be in other situations one reaches for find(1).
find -perm +6000 -type f -ls
which is much easier to type and formulate. Of course, while its much better efficiency is not a concern here, it might be in other situations one reaches for find(1).