To check for suid and sgid programs, run the following command: find / -type f \(-perm -04000 -o -perm -02000 \)