How do I search for all Suid files?

How do I search for all Suid files?
Answer
We can find all the files with SUID SGID permissions using the find command.
  1. To find all files with SUID permissions under root : # find / -perm +4000.
  2. To find all files with SGID permissions under root : # find / -perm +2000.
  3. we can also combine both find commands in a single find command:
 

Tìm kiếm

Back
Top