[Samba] Re: Problems with Excel & MS Word files (EVEN - still ANY ideas?)

Nathan Vidican nvidican at wmptl.com
Wed Mar 30 19:30:36 GMT 2005


Still experiencing two issues here; we get smbd processes that seem hung-out
and climb to 99% CPU utilization... While there, the end-user's PC seems to
spawn a new smbd process and cannot access the MS Office file (sometimes
excel, sometimes word - even powerpoint this morning), stating it's locked
for read only access. We manually do a kill, then a forced kill of the smbd
process in question, and the office app actually then immediately crashes
loosing any other documents open. So the second issue, is the locking up of
end users' files.

I increased the log level for users to 2, and am attaching a snippet of a
users logfile; from what I can tell it appears to continually open the same
file back and forth, when in fact the end user (this case me doing test) has
only once opened the file, and not saved nor closed the file. Please see
copy/paste below for logfile.

>From what I can tell it's almost as though the workstation is continually
losing connection or something, but seems to be happening in two completely
different shares, network segments, subnets, servers, and users - no real
pattern and it's not specific to any one thing except samba that we can
isolate. The network is a fully switched 100mbit network with gigabit
ethernet on the main switch including gigabit interfaces from the servers.
All end users are connected via segments (usually one or two 24 port 10/100
un managed switches) which tie into the main 10/100/1000mbit switch via
100mbit fiber-optic transceivers. The user/machine log snippet attached is
from a segment which has two 24 port switches attached to fiber transceiver
coming back to the server room, having the other end (transceiver) attached
to the gigabit switch the server in question is plugged into. This same
segment has approx 40 users attached to it, and at seemingly random we have
three to four with this problem from different physical areas.

Also attaching the relevant portions of smb.conf from one of the servers
(BDC):

--
Nathan Vidican
nvidican at wmptl.com
Windsor Match Plate & Tool Ltd.
http://www.wmptl.com/


-SMB.CONF-
[global]
workgroup = WMPDOM
server string = WMPTL Backup Domain Controller
security = user
netbios name = WMPTWO
hosts allow = 10.10.13. 127.
load printers = yes
printing = cups
printcap name = cups
printer admin = @"Print Operators"
show add printer wizard = yes
case sensitive = no
preserve case = no
guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 5000
log level = 2 user : 1
passdb backend = ldapsam:ldap://127.0.0.1:389
ldap suffix = dc=wmptl,dc=net
ldap machine suffix = ou=Machines
ldap user suffix = ou=People
ldap idmap suffix = ou=People
ldap group suffix = ou=Groups
ldap admin dn = "cn=root,dc=wmptl,dc=net"
ldap passwd sync = yes
time server = yes
cups options = "raw"
admin users = @"Domain Admins" @wheel Administrator
add machine script = /server/bin/smbldap-tools/smbldap-useradd.pl -m "%u"
ldap delete dn = yes
# delete user script = /server/bin/smbldap-tools/smbldap-userdel.pl "%u"
add group script = /server/bin/smbldap-tools/smbldap-groupadd.pl -p "%g"
add user to group script = /server/bin/smbldap-tools/smbldap-groupmod.pl -m
"%u" "%g"
delete user from group script =
/server/bin/smbldap-tools/smbldap-groupmod.pl -x "%u" "%g"
set primary group script = /server/bin/smbldap-tools/smbldap-groupmod.pl -g
"%g" "%u"
socket options = TCP_NODELAY
interfaces = 10.10.13.90/24 127.0.0.1/8
bind interfaces only = yes
local master = no
os level = 32
domain master = no
preferred master = no
domain logons = yes
encrypt passwords = yes
passwd program = /server/bin/smbldap-tools/smbldap-passwd.pl -u %u
passwd chat = "Changing password for*\nNew Password*" %n\n "*Retype new
password*" %n\n
logon script = everyone.bat
logon path = \\WMPTWO\Profiles\%U
wins support = no
wins server = 10.10.13.80
wins proxy = no
dns proxy = no
create mask = 0664
directory mask = 0775
# figured this might have helped, but makes no change enabled or not:
; level2 oplocks = no
; oplocks = no
veto oplock files = /*.mdb/
dos filetimes = yes

#============================ Share Definitions
==============================
[homes]
comment = Home Directories
valid users = %U
read only = no
create mask = 0660
directory mask = 0770
browseable = no
oplocks = no

# all shares:
include = /server/bin/samba-3.0.13/lib/shares.conf
-END SMB.CONF-

-LOGFILE-
[2005/03/30 14:09:48, 2] smbd/open.c:open_file(245)
  dristovs opened file meeting agendas/management rev
meetings/03-31-2005/management review - presentation.ppt read=Yes write=Yes
(numopen=3)
[2005/03/30 14:09:49, 2] smbd/close.c:close_normal_file(272)
  dristovs closed file meeting agendas/management rev
meetings/03-31-2005/management review - presentation.ppt (numopen=2)
[2005/03/30 14:09:49, 2] smbd/open.c:open_file(245)
  dristovs opened file meeting agendas/management rev
meetings/03-31-2005/management review - presentation.ppt read=Yes write=No
(numopen=3)
[2005/03/30 14:09:49, 2] smbd/close.c:close_normal_file(272)
  dristovs closed file meeting agendas/management rev
meetings/03-31-2005/management review - presentation.ppt (numopen=2)
[2005/03/30 14:09:49, 2] smbd/open.c:open_file(245)
  dristovs opened file meeting agendas/management rev
meetings/03-31-2005/management review - presentation.ppt read=Yes write=No
(numopen=3)
[2005/03/30 14:09:49, 2] lib/access.c:check_access(324)
  Allowed connection from  (10.10.13.23)
[2005/03/30 14:09:49, 2] lib/access.c:check_access(324)
  Allowed connection from  (10.10.13.23)
[2005/03/30 14:09:49, 2] smbd/open.c:open_file(245)
  dristovs opened file meeting agendas/management rev
meetings/03-31-2005/management review - presentation.ppt read=Yes write=No
(numopen=4)
[2005/03/30 14:09:59, 2] smbd/close.c:close_normal_file(272)
  dristovs closed file meeting agendas/management rev
meetings/03-31-2005/management review - presentation.ppt (numopen=3)
-END LOGFILE-



-----Original Message-----
From: samba-bounces+nvidican=wmptl.com at lists.samba.org
[mailto:samba-bounces+nvidican=wmptl.com at lists.samba.org] On Behalf Of
Jeremy Allison
Sent: Tuesday, March 29, 2005 12:27 PM
To: Urs Rau
Cc: samba at lists.samba.org
Subject: Re: [Samba] Re: Problems with Excel & MS Word files (still)


On Tue, Mar 29, 2005 at 11:01:10AM +0100, Urs Rau wrote:
> Jeremy or Nathan,
>
> Jeremy Allison wrote:
>
> >Ok, I have a working theory for this. It concerns ACLs and what
> >happens when excel wants to update the filetime on a file the user
> >doesn't own.
> >
> >Normally you just set the "dos filetime" parameter to allow this
> >(this causes a timestamp to be updated on a file if you can write to
> >it - normally POSIX only allows this if you're the owner). I've
> >realised the codepath here doesn't check ACL semantics. This is a bug
> >we've had since we introduced ACLs a long time ago but only now seems
> >to have been triggered.
> >
> >Here is a patch to the just released 3.0.13 that causes ACL entries
> >to be properly checked when "dos filetime= True" has been set.
> >
> >Please try this on top of 3.0.13 and let me know if it fixes the
> >issues.
>
> Has this been confirmed, as fixing it? I am rolling a 3.0.13
> maintenance
> release and it would be nice to clear this excel ACL bug. What is the
> bugzilla entry for this bug, so I can follow it?

Most people have reported this being fixed with dos filetimes=yes and
3.0.13. There are still a few outstanding issues when people are using ACLs
I'm looking into right now.

Jeremy.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list