salt.states.file should support relative/symbolic modes #67519
Replies: 14 comments 1 reply
-
@brevilo - thanks. We'll label this as a feature as the described functionality for relative or symbolic values currently does not exist (that we know of) and needs to be added. If we find that the functionality does exist and it's just not working we can go back and label this a bug. |
Beta Was this translation helpful? Give feedback.
-
@brevilo - feel free to create a PR to add this functionality |
Beta Was this translation helpful? Give feedback.
-
Yep, as intended. |
Beta Was this translation helpful? Give feedback.
-
It will be noted in this bug when this feature is implemented, correct? Got something that this functionality would be great for. =) At any rate, 👍 for the desired functionality. |
Beta Was this translation helpful? Give feedback.
-
I'd love to see this implemented. Currently I've got to use something like |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
This is still a problem. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
I think this functionality is still missing, based on a skim of the file state module documentation. https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
No progress on this after 2 years? |
Beta Was this translation helpful? Give feedback.
-
Given that file permissions are a fundamental building block of security, I think that calling this issue a "feature" is inaccurate. This is a bug 🐛 This issue is still present. For example: Lines 739 to 754 in b45c319 |
Beta Was this translation helpful? Give feedback.
-
It's more than a skosh disheartening that this ticket is still open given that I first started following it back in 2016 (over seven years ago, now, and a couple months shy my issue-join's 7th anniversary, at this point) |
Beta Was this translation helpful? Give feedback.
-
The
salt.states.file
module allows to set file/directory permissions by specifying common numerical UNIX mode values (seefile
anddirectory
functions). In contrast tochmod
, however, it doesn't support relative or symbolic mode values likeg+w
. Thus one can only modify permissions as a whole, not individual bits (without workarounds likesalt.states.cmd.run
).Beta Was this translation helpful? Give feedback.
All reactions