# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ed4m4s.blog/privilege-escalation/linux/suid-guid-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
