You are not logged in.

#1 2012-04-05 08:37:03

e1fjl
Member
Registered: 2009-07-30
Posts: 13

SAMBA server won't allow editing of .html files

Hi all,

I've set up a SAMBA share with the following conf:

[global]
        workgroup = MYGROUP
        server string = Fileserver
        security = SHARE
        log file = /var/log/samba/%m.log
        max log size = 50
        dns proxy = No
        idmap config * : backend = tdb
        guest account = nobody
        veto files = /Network Trash Folder/Temporary Items/lost+found/

[Sharename]
        path = /mnt/folder
        read only = No
        guest only = Yes
        guest ok = Yes

This works perfectly as an open file share to windows machines however it won't let me edit any files that end in .html. All other files that I have tried are fine but as soon as I rename a file test.txt to test.html it is no longer editable through the samba share. Renaming it back to test.txt makes it editable again. Strange thing is I can edit the file name at any time so the file is clearly editable by the samba user but when I try to save a .html file in windows i get "This file is open by another program". Would this mean that its a file locking problem rather than a permissions one?

Also if I create a new html file and then save to the share I can edit it until I close the program that created it. If I reopen the file after that I get the same error.

The users all match up - nobody is the owner of the shared directory and of the files being created in it

Any ideas what might be causing this? I would have thought that file extensions would be pretty ineffectual in a samba share but this is only occurring with .html files

Thanks for any guidance

Offline

#2 2012-04-05 13:50:15

whoop
Member
Registered: 2009-05-28
Posts: 101

Re: SAMBA server won't allow editing of .html files

I think it is a file association problem and it has nothing to do with permissions. Try dragging the html file into a text editor, change it, then save it.
If my assumption is correct the problem is on the client machine not the server.

Offline

Board footer

Powered by FluxBB