Open kasbert opened 2 years ago
Do you have write access to the directory?
Yes, and the directory is owned by me.
Same here! I guess there is no way to bypass this behaviour. But Augeas should at least ignore replacechown if /augeas/save is set to 'newfile'_ or _AUG_SAVENEWFILE flag is set. The reason for this is that I do not want to change ownership of the original file away from root, otherwise things get to complicated. Also certain groups with write permission should be able to at least write changes into configurations, but it is impossible right now.
I would change the behaviour when savemode=overwrite (or with a new savemode) so that the file contents is copied instead of renaming the file.
I have a augeas recipe javaconf.aug
and a file java.properties
The target file (java.properties) is owned by nobody, but I have a group write access to the file.
Running augtool tries to chown the file and fails.
augtool version is 1.10.1