# SUID / SGID Files
Use the following find command to locate files with the SUID or SGID bits set:
```bash
$ find / -type f -a \( -perm -u+s -o -perm -g+s \) -exec ls -l {} \; 2> /dev/null
```
The above will search for items recursively from the systems root directory only matching files which either have the SUID or SGID bits set and run the ls -l command against each one.
---