SUMMARY: find command displays (take two)
2007-12-24 21:58:00
Dilip
-----
find / '(' -perm -4000 -o -perm -2000 ')' -exec ls -ldg {} ';'
Andrew
------
Try
# find / -type f -perm -4000 -ls | tee -a suid.txt
Note the dropping of the awful and inificient exec. If you must use some
command, then I suggest using xargs, eg.
# find /a -print | xargs ls -F
Sun's Blueprint (security-updt1.pdf)
---------------
find / -type f \( -perm -u+s -o -perm -g+s \) -ls
Comments
Got something to say?
You must be logged in to post a comment.

