Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

When I open a Microsoft Office file from one of my Samba shares and then I disconnect and reconnect from the network I have to save my files as a copy because the file was somehow changed to read-only. I need to be able to save files/overwrite them even after leaving and reconnecting to the network.

ClearOS 5.2
Samba version 3.5.14-1.1.v5
Windows 7 64-bit & Windows XP Clients

share|improve this question
After editing/saving a file, are the file permissions themselves changed? (i.e rwxrwxrwx to r-xr-xr-x)? Or are the files locked/"not available for editing"? – Univ426 Jul 30 '12 at 18:08
I will check for that when I get back from vacation on the 13th. – Tristan Hall Aug 3 '12 at 14:15
The file permissions aren't being changed after editing/saving. However I did notice that the Office 2007 lock file is still around even after closing the program and saving the document. Here's what "ls -l" returned for it: – Tristan Hall Aug 6 '12 at 14:54
The permissions aren't being changed after editing/saving. However, I did notice that the Office 2007 lock file (file beginning with '~$') is still on my samba share even after saving and closing. Does this have anything to do with my issue and how do I fix it? Thank you! – Tristan Hall Aug 6 '12 at 14:55

1 Answer 1

up vote 6 down vote accepted

I am not sure if its the default option but you could check to see if oplocking is enabled.

More information can be found here

share|improve this answer
Oplocking and all other locks have been disabled in the smb.conf and share definitions. – Tristan Hall Aug 3 '12 at 14:16
It seems that this is an issue exclusive to MS Office. :P – Tristan Hall Mar 2 '13 at 21:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.