# File Permissions

This assertion type verifies the permissions of a file. It helps you to quickly check expected permission sets.

## Expecting

This type checks if the file has 775 permissions.

```yaml
file_permission:
    - name: "My File has 775"
      file: "/var/www/my-file.txt"
      expected: "775"
```

## Not Expecting

Use this type to verify that the file does not have 775 permissions.

```yaml
file_permission:
    - name: "My File has not 775"
      file: "/var/www/my-file.txt"
      not_expected: "775"
```


---

# 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://docs.svrunit.com/assertions/file-permissions.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.
