gedit fails to save files over smbfs/cifs
@seb128
Submitted by Sébastien Bacher Link to original bug (#336738)
Description
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/gedit/+bug/34813
"Saving files over a cifs/smbfs server doesnt work. You can open file, edit then save perfectly. But repeated saves after give you this error:
"The file /home/dhonn/website/arrays.php has been modified since reading it. If you save it, all the external changes could be lost. Save it anyway?"
The think is lying to me because I havent made any external changes.
When I click "Save Anyway", i get this error:
"Could not save the file /home/dhonn/website/arrays.php."
But on the third try it works just fine.
Here are the error messages, btw there are also GUI glitches too: http://dhonn.com/images/gedit-0.jpg http://dhonn.com/images/gedit-1.jpg ...
Do you have the issue if you don't use the automatic backup file option? How does smbfs/cifs work, could you describe a simple way to set up it to figure if that happens for somebody else too? ...
Automatic backup has been off the whole time. I turned it off because of this and still it has the problem.
I simply made a folder website I then have an init.d script that executes this code mount -t cifs -o password= //192.168.1.100/website /home/dhonn/website
I now can edit any file in the website folder with any program other than gedit just fine.
Here is my simple smb.conf file:
I've omitted all but the changes Ive personally made
security = share
[website] comment = Website guest ok = yes read only = no path = /home/dhonn/website force user = dhonn force group = dhonn case sensitive = yes public = yes browseable = no
this smb.conf file is on my server
I have no clue what gedit is doing but its not acting right. And yes its just gedit. No other program has this problem.
I'll give you a run down of what im doing:
Create a new text file in gedit. Save it in the website folder. Click save again and its giving me an error like I've shown you before and I click Save Anyway.
Now if i start to edit the file then save. It gives me the same error again and at the same time changing the file to excutable.
Here is the error again:
"The file /home/dhonn/website/Unsaved Document 1 has been modified since reading it.
If you save it, all the external changes could be lost. Save it anyway?"
There is nothing externally making changes to my file.
So could the problem be samba altering the file after Ive made ive saved the file?"
On my box it doesn't complain about it changing but it displays and error when trying to store it too