All the howtos that I find on the web states: Find all SUID files:find / -perm -4000 -printFind all SGID files:find / -perm -2000 -print But that is not true. See: $ ls -lah test-r-sr-xr-x  1 user  user     0B Jan 24 22:47 test$ $ $ stat -x test | grep Mode  Mode: (4555/-r-sr-xr-x)         Uid: ( 1000/    user)  Gid: ( 1000/    user)$ $ $ find test -perm 4000$ find test -perm 2000$Question: So what is the truth? How can I really list all the SUID/SGID files?
How to search for all SUID/SGID files?
find