permissions

Set permissions on a file or directory (non recursively).

⚙️ Compatible targets: Linux

Parameters

NameDocumentation
pathPath to the file/directory.

This parameter is required.
modeMode to enforce (like "640").

This parameter is optional.
ownerOwner to enforce (like "root").

This parameter is optional.
groupGroup to enforce (like "wheel").

This parameter is optional.

Example

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