Sample Header Ad - 728x90

Any reason for specifying -type f in find when looking for files with SUID bit set?

0 votes
1 answer
281 views
What's the reason for using
-type f
with
/ -perm -u=s -type f 2>/dev/null
. I see this all over the Internet and don't understand why to specify the type as regular file if look for SUID bit set. SUID can be set only of files and not directories so why
-type f
? Or am I missing something ?
Asked by user211245 (25 rep)
May 7, 2020, 06:25 AM
Last activity: May 7, 2020, 06:31 AM