Hi,
This weekend I migrated a samba-server to new hardware and software :
I'm running samba 3.2.7-11.3.2 on Opensuse 11.1.
Everything works fine I believe except for an old DOS-application,
written in Clipper. It's too slow to be usable. I tried to debug this
but I'm stuck.
I put the loglevel to 10, but I can't see anything wrong.
I first added to veto oplock files : *.dbf/*.ntx/, no effect.
I didn't have oplocks off, but now I disabled them, with no effect.
I moved all files to another share (from Data to Applic) with no effect.
Am I right that if I wait long enough (few minutes) the modified config
is read without interupting the services ?
I hope someone can point me in the right direction.
Koenraad Lelong.
This is the important part of my config :
[global]
workgroup = MYDOMAIN
server string = Samba on %L
interfaces = 192.168.0.0/20, lo
bind interfaces only = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n
*Password*changed*
username map = /etc/samba/smbusers
unix password sync = Yes
lanman auth = Yes
client lanman auth = Yes
client plaintext auth = Yes
log level = 10
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 139
name resolve order = wins bcast hosts
time server = Yes
printcap name = CUPS
mangle prefix = 5
add user script = /usr/sbin/useradd -m -s /bin/false '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g' && getent group
'%g'|awk -F:
'{print $3}'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/groupmod -A '%u' '%g'
delete user from group script = /usr/sbin/groupmod -R '%u' '%g'
set primary group script = /usr/sbin/usermod -g '%g' '%u'
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody
-s /bin/false '%u'
shutdown script = /var/lib/samba/scripts/shutdown.sh
abort shutdown script = /sbin /shutdown -c
logon script = scripts\%U.bat
logon drive = F:
logon home = \\lace2\%U
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
ldap ssl = no
utmp = Yes
create mask = 0664
force create mode = 0660
directory mask = 0777
force directory mode = 0770
map acl inherit = Yes
cups options = Raw
printer name = LJ4050
veto files = /*.eml/*.nws/*.{*}/Thumbs.db/
veto oplock files = /*.doc/*.xls/*.mdb/*.dbf/*.ntx/
oplocks = No
level2 oplocks = No
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[printers]
comment = SMB Print Spool
path = /var/spool/samba
guest ok = Yes
printable = Yes
printer name use client driver = Yes
browseable = No
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
admin users = Koenraad
write list = root
guest ok = Yes
browseable = No
locking = No
[profiles]
comment = Profile Share
path = /var/lib/samba/profiles
read only = No
profile acls = Yes
[Data]
comment = Data schijf
path = /net/Data
read only = No
acl group control = Yes
dos filemode = Yes
[Applic]
comment = Applicatie schijf
path = /net/Applic
read only = No
This is part of a logfile of the PC I'm using :
[2009/10/19 14:45:28, 5] smbd/uid.c:change_to_root_user(337)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2009/10/19 14:45:28, 10]
lib/util_sock.c:read_smb_length_return_keepalive(1118)
got smb length of 45
[2009/10/19 14:45:28, 6] smbd/process.c:process_smb(1547)
got message type 0x0 of len 0x2d
[2009/10/19 14:45:28, 3] smbd/process.c:process_smb(1550)
Transaction 516199 of length 49 (0 toread)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(647)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(657)
size=45
smb_com=0xa
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=32768
smb_tid=6
smb_pid=4842
smb_uid=104
smb_mid=1666
smt_wct=5
smb_vwv[ 0]= 6473 (0x1949)
smb_vwv[ 1]= 12 (0xC)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 0 (0x0)
smb_vwv[ 4]= 12 (0xC)
smb_bcc=0
[2009/10/19 14:45:28, 3] smbd/process.c:switch_message(1361)
switch message SMBread (pid 28121) conn 0xb80b3780
[2009/10/19 14:45:28, 3] smbd/sec_ctx.c:set_sec_ctx(324)
setting sec ctx (1007, 1003) - sec_ctx_stack_ndx = 0
[2009/10/19 14:45:28, 5] auth/token_util.c:debug_nt_user_token(472)
NT user token of user S-1-5-21-177555115-702490737-1861429907-1012
contains 12 SIDs
SID[ 0]: S-1-5-21-177555115-702490737-1861429907-1012
SID[ 1]: S-1-5-21-177555115-702490737-1861429907-1120
SID[ 2]: S-1-1-0
SID[ 3]: S-1-5-2
SID[ 4]: S-1-5-11
SID[ 5]: S-1-5-21-177555115-702490737-1861429907-513
SID[ 6]: S-1-5-21-177555115-702490737-1861429907-3015
SID[ 7]: S-1-5-21-177555115-702490737-1861429907-3017
SID[ 8]: S-1-22-2-1003
SID[ 9]: S-1-22-2-100
SID[ 10]: S-1-22-2-1007
SID[ 11]: S-1-22-2-1008
SE_PRIV 0x0 0x0 0x0 0x0
[2009/10/19 14:45:28, 5] auth/token_util.c:debug_unix_user_token(492)
UNIX token of user 1007
Primary group is 1003 and contains 4 supplementary groups
Group[ 0]: 1003
Group[ 1]: 100
Group[ 2]: 1007
Group[ 3]: 1008
[2009/10/19 14:45:28, 5] smbd/uid.c:change_to_user(322)
change_to_user uid=(0,1007) gid=(0,1003)
[2009/10/19 14:45:28, 10] locking/locking.c:is_locked(98)
is_locked: optimisation - exclusive oplock on file ACE/TIKKLOK/PCBNR.NTX
[2009/10/19 14:45:28, 10] locking/locking.c:is_locked(136)
is_locked: flavour = WINDOWS_LOCK brl start=0 len=12 unlocked for
fnum 6473 file ACE/TIKKLOK/PCBNR.NTX
[2009/10/19 14:45:28, 10] smbd/fileio.c:read_file(104)
read_file (ACE/TIKKLOK/PCBNR.NTX): pos = 0, size = 12, returned 12
[2009/10/19 14:45:28, 3] smbd/reply.c:reply_read(3123)
read fnum=6473 num=12 nread=12
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(647)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(657)
size=60
smb_com=0xa
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=128
smb_flg2=32769
smb_tid=6
smb_pid=4842
smb_uid=104
smb_mid=1666
smt_wct=5
smb_vwv[ 0]= 12 (0xC)
smb_vwv[ 1]= 0 (0x0)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 0 (0x0)
smb_vwv[ 4]= 0 (0x0)
smb_bcc=15
[2009/10/19 14:45:28, 10] lib/util.c:dump_data(2231)
[000] 01 0C 00 06 00 01 00 00 FC 00 00 00 00 00 00 ........ .......
[2009/10/19 14:45:28, 10]
lib/util_sock.c:read_smb_length_return_keepalive(1118)
got smb length of 51
[2009/10/19 14:45:28, 6] smbd/process.c:process_smb(1547)
got message type 0x0 of len 0x33
[2009/10/19 14:45:28, 3] smbd/process.c:process_smb(1550)
Transaction 516200 of length 55 (0 toread)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(647)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(657)
size=51
smb_com=0x1a
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=32768
smb_tid=6
smb_pid=4842
smb_uid=104
smb_mid=1794
smt_wct=8
smb_vwv[ 0]= 6472 (0x1948)
smb_vwv[ 1]=39658 (0x9AEA)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 61 (0x3D)
smb_vwv[ 4]= 0 (0x0)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 0 (0x0)
smb_vwv[ 7]= 0 (0x0)
smb_bcc=0
[2009/10/19 14:45:28, 3] smbd/process.c:switch_message(1361)
switch message SMBreadbraw (pid 28121) conn 0xb80b3780
[2009/10/19 14:45:28, 4] smbd/uid.c:change_to_user(225)
change_to_user: Skipping user change - already user
[2009/10/19 14:45:28, 10] locking/locking.c:is_locked(98)
is_locked: optimisation - exclusive oplock on file ACE/TIKKLOK/PCB.DBF
[2009/10/19 14:45:28, 10] locking/locking.c:is_locked(136)
is_locked: flavour = WINDOWS_LOCK brl start=39658 len=61 unlocked for
fnum 6472 file ACE/TIKKLOK/PCB.DBF
[2009/10/19 14:45:28, 3] smbd/reply.c:reply_readbraw(2924)
reply_readbraw: fnum=6472 start=39658 max=61 min=0 nread=61
[2009/10/19 14:45:28, 10] smbd/fileio.c:read_file(104)
read_file (ACE/TIKKLOK/PCB.DBF): pos = 39658, size = 61, returned 61
[2009/10/19 14:45:28, 5] smbd/reply.c:reply_readbraw(2928)
reply_readbraw finished
[2009/10/19 14:45:28, 10]
lib/util_sock.c:read_smb_length_return_keepalive(1118)
got smb length of 51
[2009/10/19 14:45:28, 6] smbd/process.c:process_smb(1547)
got message type 0x0 of len 0x33
[2009/10/19 14:45:28, 3] smbd/process.c:process_smb(1550)
Transaction 516201 of length 55 (0 toread)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(647)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(657)
size=51
smb_com=0x1a
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=32768
smb_tid=6
smb_pid=4842
smb_uid=104
smb_mid=1922
smt_wct=8
smb_vwv[ 0]= 6472 (0x1948)
smb_vwv[ 1]=39658 (0x9AEA)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 61 (0x3D)
smb_vwv[ 4]= 0 (0x0)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 0 (0x0)
smb_vwv[ 7]= 0 (0x0)
smb_bcc=0
[2009/10/19 14:45:28, 3] smbd/process.c:switch_message(1361)
switch message SMBreadbraw (pid 28121) conn 0xb80b3780
[2009/10/19 14:45:28, 4] smbd/uid.c:change_to_user(225)
change_to_user: Skipping user change - already user
[2009/10/19 14:45:28, 10] locking/locking.c:is_locked(98)
is_locked: optimisation - exclusive oplock on file ACE/TIKKLOK/PCB.DBF
[2009/10/19 14:45:28, 10] locking/locking.c:is_locked(136)
is_locked: flavour = WINDOWS_LOCK brl start=39658 len=61 unlocked for
fnum 6472 file ACE/TIKKLOK/PCB.DBF
[2009/10/19 14:45:28, 3] smbd/reply.c:reply_readbraw(2924)
reply_readbraw: fnum=6472 start=39658 max=61 min=0 nread=61
[2009/10/19 14:45:28, 10] smbd/fileio.c:read_file(104)
read_file (ACE/TIKKLOK/PCB.DBF): pos = 39658, size = 61, returned 61
[2009/10/19 14:45:28, 5] smbd/reply.c:reply_readbraw(2928)
reply_readbraw finished
[2009/10/19 14:45:28, 10]
lib/util_sock.c:read_smb_length_return_keepalive(1118)
got smb length of 45
[2009/10/19 14:45:28, 6] smbd/process.c:process_smb(1547)
got message type 0x0 of len 0x2d
[2009/10/19 14:45:28, 3] smbd/process.c:process_smb(1550)
Transaction 516202 of length 49 (0 toread)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(647)
[2009/10/19 14:45:28, 5] lib/util.c:show_msg(657)
size=45
smb_com=0xd
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=32768
smb_tid=6
smb_pid=4842
smb_uid=104
smb_mid=2050
smt_wct=5
smb_vwv[ 0]= 6473 (0x1949)
smb_vwv[ 1]= 1 (0x1)