permissions_recursive

Verify if a file or directory has the right permissions recursively.

⚙️ Compatible targets: Linux

Parameters

NameDocumentation
pathPath to the file / directory.

This parameter is required.
modeMode to enforce.

This parameter is optional.
ownerOwner to enforce.

This parameter is optional.
groupGroup to enforce.

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
  • ❌ Error: permissions_${path}_error

Example

method: permissions_recursive
params:
  group: OPTIONAL_VALUE
  path: VALUE
  mode: OPTIONAL_VALUE
  owner: OPTIONAL_VALUE

Documentation

The method ensures that all files and directories under path have the correct owner, group owner and permissions.

This method is in fact a call to the permissions_type_recursion method with "all" type and "inf" recursion.