> For the complete documentation index, see [llms.txt](https://docs.svrunit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.svrunit.com/assertions/file-permissions.md).

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