Hi Guys
I've got a samba share on my Centos 6 machine that is mounted on an NFS export from an Ubuntu machine.
Since creating the setup my users worked for a week with no problems on this share.
Today, nobody can open any file with MS-Excel or MS-Word.
Using Notepad on the client machines (for example) I can open all files, including the Word and Excel files (I see the binary content of the file in Notepad). I can also save changes.
However, if I try to open the MS-Excel or MS-Word files, the file is always locked by "another user" according to Excel or Word. If the file does not come up as "locked by another user", sometimes, after a few minutes, the user cannot save the file in Excel or Word.
Here's the /etc/exports on the Ubuntu machine:
Code:
/shares/Users 192.168.1.2(rw,sync,no_root_squash)
Here's how I mount the above NFS share on my Centos machine:
Code:
mount 192.168.1.2:/shares/Users /mnt/users -o user,exec,dev,suid,rw,nolock
Here's my smb.conf:
Code:
[global]
workgroup = mydomain
server string = Samba Server Version %v
netbios name = DOMPDC
interfaces = lo eth0
hosts allow = 127. 172.
admin users = root
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
domain master = yes
domain logons = yes
encrypt passwords = yes
os level = 65
log level = 3
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
preferred master = auto
local master = yes
wins support = yes
name resolve order = bcast host lmhosts wins
dns proxy = yes
lm announce = no
logon script = %U.bat
logon path =
logon drive =
#logon drive = O:
load printers = no
time server = yes
ntlm auth = yes
client ntlmv2 auth = yes
client lanman auth = yes
client use spnego = yes
lanman auth = yes
remote announce = 172.16.0.0
deadtime=2
keepalive=10
winbind separator = +
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
#client use spnego = yes
kernel oplocks = no
[Users]
path = /mnt/users
guest ok = no
writable = yes
create mask = 0777
directory mask = 0777
browseable = yes
public = yes
valid users = sn cg eo nd
Veto files = /*.inf/*.lnk/*.mp3/*.avi/*.mp4/*.divx/*.acc/*.ogg/*.pif/*.cmd/*.exe/
The Samba instance is also serving as PDC, all the users having the MS-Excel and MS-Word "opening problem" are members of the domain, and are logged in. They're using Office 2010 and Windows 7.
What I can do to enable them to be able to just even open an MS-Excel or MS-Word file on the shares, without being told it is locked by somebody else?
I've already tested for contention, if I alone (no other users) go on the share after rebooting the Samba server and the NFS source server / ubuntu server I =STILL= cannot open any Office file using Excel or Word, same error.
I've already tried setting oplocks off on the share, turning on / off NT acls with in smb.conf, added the nolock option when mounting the NFS share, etc. etc. etc.
How in tarnation can I get this to work?
Any help appreciated!!