Permissions#

Checker name#

Permissions check

Description#

Checks the permission bits of a restored file-system object.

Permissions can be compared with a manually configured permission string or with the permissions stored in the Bacula Catalog.

Attribute#

Permissions

Selecting the Permissions attribute in Verification Rules causes Bacularis to execute the PermissionsCheck checker.

Supported operators#

  • == - equal to

  • != - not equal to

  • C== - equal to the value stored in the Bacula Catalog

Expected value#

For manual comparisons, enter a symbolic permission string such as:

rwxr-xr-x

A 10-character file mode that includes the leading file-type character is also accepted; the leading character is ignored for the permission comparison.

When C== is used, the expected permissions are taken automatically from the Bacula Catalog.

Capabilities#

This checker requires a Restore Destination with the File restore checks capability enabled.

Requirements#

No additional requirements.

Examples#

Verify a specific permission mode:

/opt/bacula/bin/bdirjson  Permissions  ==  rwxr-xr-x

Compare restored permissions with the Bacula Catalog:

/opt/bacula/bin/bdirjson  Permissions  C==  Catalog value

Notes and limitations#

This checker compares symbolic permission bits. It does not compare ACLs or other extended access-control metadata.