Project

General

Profile

Actions

User story #3675

closed

Technique "Set the permissions on files": should allow specifying regex to match files

Added by Michael Gliwinski almost 11 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Techniques
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Currently defining same ownership/permissions for a list of files/directories in filesPermissions technique (Set permissions on files) is quite tedious as same settings have to be repeated for each file/dir. It would be great if using a regular expression in place of path was allowed.

Since CFEngine already allows this, implementation should be quite simple. The only reason it doesn't work today is because the technique uses fileexists function to check if the path exists. I was thinking about modifying it so that check is only done if the path does not contain any regular expression meta-characters. Or maybe removing the check altogether would be fine?

I can work on the implementation but wanted to discuss this first. What do you think about such change?

Actions

Also available in: Atom PDF