Hi team,

I started facing issues when using sed changing a file in place with the following command

sed -i cmd file

even though I have the necessary permissions to access the file with my script, sed returns
the following error

sed: couldn't open temporary file ./sed7hc859: Permission denied
And it would then create a temporary file ./sed7hc859.