gedit and nautilus cannot modify file on SMB/CIFS share (file is busy)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I mount a Windows Share using mount.cifs. Everything works well including editing and saving file with vi and OpenOffice. Using gedit, I can create new files on the share and open existing ones. When I modify an existing file and try to save the changes, however, I get a “Unexpected Error: Text file busy”. Editing the same file with vi or any other program works well. Using gedit I can edit any other file on my computer including those on sftp mounts.
The same problem occurs with Nautilus: When I try to overwrite an existing file on the network share, I am told “Error while renaming temporary file: Text file busy”. I suspect the two errors have the same root cause but I'm not sure in which package it might be. Also I am not experienced in creating detailed logs for gedit or nautilus. Since my syslog and my messages don't show any entries related to the problem, I can't provide any detailed logs. I'll happily create a log of the problem if someone points out how it's done, though :-)
BTW, I use the following command line to mount the share:
/usr/bin/env PASSWD=$PASS /sbin/mount.cifs //wi-lsn/ls-in /home/ls-in -o user=tiha,
The issue does NOT occur when I mount an SMB share that is provided by a Ubuntu system. The problematic SMB shares are provided by Windows file servers (one of them is running Windows XP).
Might be a duplicate to bug #34813 but I'm not quite sure as my behavior not only affects gedit but also nautilus.
This is a dupe of another bug already reported.
I'll try to find the original bug and link this to it