Sed: Cannot Rename Temporary File : Permission Denied
This page answers questions like these:
- What is causing "sed: cannot rename ...: Permission denied"?
- Why does sed die with an error about not being able to rename a file?
- Why does running multiple seds cause one to terminate with an error about not being able to rename a file?
sed: cannot rename /tmp/sedXXXXXX: Permission denied:
$ sed -i -e COMMAND FILE
sed: cannot rename /tmp/sed87A28d: Permission denied
- This occurs most often when there are multiple processes running sed -i on files located in the same directory.
- The file that sed is complaining about can be in the tmp directory or in the same directory as the file being edited.
- One way which seems to get around this issue is to use sed's -i option with an argument, e.g. sed -i.bak COMMAND FILE.
Join Lines of Text File Together
Remove Characters From the End of a Large File
Remove Characters From the Start of a Large File
Replace Text in a File using the Command Line
Home > Linux / Unix > Sed: Cannot Rename Temporary File : Permission Denied
Tags: sed cannot rename, sed: cannot rename, sed cannot rename permission denied, sed permission denied, temporary file