> For the complete documentation index, see [llms.txt](https://ed4m4s.blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ed4m4s.blog/privilege-escalation/linux/suid-guid-files.md).

# SUID/GUID files

Find those files.

```bash
find / -perm -u=s -type f 2>/dev/null

Where:
find        : Initiates the "find" command
/           : Search the whole file system
-perm       : Search for files with specific permissions
-u=s        : Any of the permission bits mode are set for the file.
-type f     : Only search for files
2>/dev/null : Suppresses errors
```
