Project

General

Profile

Actions

User story #14514

closed

User story #12271: Generic method to set POSIX ACL

Add a generic method to add ACLs on a given file

Added by Félix DALLIDET about 5 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

This GM should be able to add aces to a given file or set of file, without impacting the already defined other aces.

The "path" parameter will support the regex type defined here: https://docs.cfengine.com/docs/3.13/reference-functions-findfiles.html
Each file will have a dedicated line in the reporting but only one global report will be send.
Ex: /tmp/myDir/* will apply to every file and directory in /tmp/myDir

The current syntax for user or group ace must respect the format: $|[A-z0-9._-]+:[+-]r?w?x?$
Ex: myuser:+rwx, mystupidUser:-rwx
Syntax for "other" must respect the format: $|[+-]r?w?x?

Each parameter left blank will have no effect on the file.
Default mode for the recursivity will be "false".

It can be recursive or not, but can not modify the "default" ACLs of a given directory.

Actions

Also available in: Atom PDF