Command 'yq -i '.setting = "value"' config.yml' deletes permissions for yaml files on Windows 11
Author: dianaluzginaCreated Aug 28, 2026Updated Aug 28, 2026
Labelsbugv4
Describe the bug When we run command 'yq -i '.setting = "value"' config.yml' under other user (not admin) on Windows 11, 2019, 2022 config.yml file loses permission for this user. And we get 'Access denied' error
Version of yq: 4.53.6 Operating system: Windows Server 2019, 2022, Windows 11 23H2, 25H2 Installed via: chocolatey
Command 'yq -i '.setting = "value"' config.yml'
Actual behaviour setting has not changed permissions for config.yml file for user are deleted. And we get 'Access denied' error config.yml setting: old-value
**Expected behaviour**
permissions for config.yml file for user stay the same
config.yml
setting: valueAdditional context Previous versions didn't have such bug on Windows 2019, 2022, 11-23H2, 11-25H2
Source: mikefarah/yq