I'm using mingw.
$ sed -i "s/a/b/" test.txt
sed: preserving permissions for `./sed003480': Permission denied
I can touch/rm files in current dir.
question from:https://stackoverflow.com/questions/14313318/permission-denied-when-sed-in-place-edit-in-mingw