[Samba] strange kind of sharing violation disappearing with socket
options
Philippe Strauss
philippe.strauss at goelaan.ch
Thu Aug 24 14:24:38 GMT 2006
Hello,
On a samba (3.0.22 from samba.org on FC4) setup running at
one of our customer site, we got a strange kind of bogus sharing
violation using
excel and word (french version).
the messages, translated in english:
Excel:
"saving of the document has succeeded, but Excel was not able to
reopen-it due to
a sharing violation. Close the document and try to reopen-it".
"New sheet.xls is locked for modification by "Microsoft Corporation".
Open the document using the read-only option or click on Notify to open
a read-only copy of the document and get notified when the document
will be available".
Word:
"Unable to save: insufficiant memory or disk space".
small screenshots attached.
Now the strange thing is that those bogus behavior have ceased after
putting the following socket options in smb.conf:
TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
Anyone has an explanation?
here is the smb.conf:
[global]
log level = 1
netbios name = FILESERVER
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
enable privileges = Yes
delete user from group script =
/opt/IDEALX/sbin/smbldap-groupmod -x "%u" "%g"
time server = Yes
level2 oplocks = No
oplocks = No
cups options = "raw"
ldap passwd sync = Yes
logon script = logon.bat
workgroup = FHS-SAMBA
os level = 255
ldap admin dn = cn=admin,dc=fhs,dc=ch
printcap name = cups
add machine script = /opt/IDEALX/sbin/smbldap-useradd -w "%u"
directory mode = 700
ldap user suffix = ou=Users
add group script = /opt/IDEALX/sbin/smbldap-groupadd -p "%g"
map acl inherit = Yes
delete group script = /opt/IDEALX/sbin/smbldap-groupdel "%g"
add user to group script = /opt/IDEALX/sbin/smbldap-groupmod -m
"%u" "%g"
logon drive = H:
username map = /etc/samba/smbusers
domain master = Yes
passdb backend = ldapsam:ldap://ldap/
#logon home =
case sensitive = No
#wins support = Yes
ldap delete dn = Yes
server string =
ldap group suffix = ou=Groups
ldap machine suffix = ou=Computers
ldap suffix = dc=fhs,dc=ch
#logon path =
set primary group script = /opt/IDEALX/sbin/smbldap-usermod -g
"%g" "%u"
create mode = 700
ldap idmap suffix = ou=Users
domain logons = Yes
[homes]
comment = repertoire de %U, %u
read only = No
create mask = 0644
directory mask = 0775
browseable = No
[netlogon]
path = /home/samba/netlogon/
browseable = No
[profiles]
path = /home/samba/profiles
valid users = %U, "@Domain Admins"
force user = %U
read only = No
create mask = 0600
directory mask = 0700
guest ok = Yes
profile acls = Yes
browseable = No
csc policy = disable
[donnee]
comment = Donnees
path = /data/donnee
read only = No
regards.
--
Network & System Engineer
Goelaan SA, Switzerland
Tel. +41-22-960 98 20
Fax +41-22-960 98 21
http://www.goelaan.ch
More information about the samba
mailing list