permissions
Set permissions on a file or directory (non recursively).
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
path | Path to the file/directory. This parameter is required. |
mode | Mode to enforce (like "640"). This parameter is optional. |
owner | Owner to enforce (like "root"). This parameter is optional. |
group | Group to enforce (like "wheel"). This parameter is optional. |
Outcome conditions
You need to replace ${path}
with its actual canonified value.
- ✅ Ok:
permissions_${path}_ok
- ☑️ Already compliant:
permissions_${path}_kept
- 🟨 Repaired:
permissions_${path}_repaired
- ☑️ Already compliant:
- ❌ Error:
permissions_${path}_error
Example
method: permissions
params:
path: VALUE
owner: OPTIONAL_VALUE
group: OPTIONAL_VALUE
mode: OPTIONAL_VALUE