Hi all,
the local unix guru & myself (the neophyte) have been samba'ing
merrily away, but run into two problems, which I can't seem to
resolve (help wanted, reply directly preferred to keep list volume
down :-). Any help or pointers (rtfm etc) appreciated.
(I've enclosed the smb.conf at the end of the msg)
1.
Browsing - I need to use two NT servers for browse functionality & I
can't get the samba server to appear. The end of the line is to get
the samba server to use NT's domain authentication instead of its own
unix end.
2.
guest connections _without_ having to enter a pwd under Win95, or NT.
Should just be able to "net use" to the samba server (had to use an
lmhosts entry to get around the non-browsing problem).
3.
most stuff works just fine, but one of the jobs we do frequently is
update files from a core which exists on a Novell server. I use
robocopy v.171 (NT 4.0 reskit update 2) to do this. It causes a
problem when copying to/from a samba server:
robocopy to a non-existent dir works OK.
subsequent robocopy to update this dir fails at the first
sub-directory. The smbd process then dies, and is recreated shortly
afterwards (when the next copy is tried).
each subsequent robocopy to update this dir fails at the
_next_ sub-directory.
Our UNIX guru supplied the following info:
If you're going to post a message to the samba mailing list, there is
a consistency to the problem. I've tried the robocopy a number of
times. Each time the copy stops at the directory after the one it
hung on the previous time. There is a timeout period of approximately
73 seconds. I timed it several times. That's quite a strange number
if you ask me. Below are a couple of traces, one being the network
traffic the other a truss. The network traffic shows the PC sending a
message to cantua, but no response from it. That's the
cctrxc.canterbury.ac.nz -> cantua_fddi line of the network trace.
The truss shows that the smbd process sent a message to the PC but
received no reply. Its shows a write, then it polls but doesn't
receive anything so never does a read.
I've tried it on both the FDDI and ethernet interfaces
and it makes no difference. The smbd process does not exit
until the end of the 73 second time out period.
It appears to me that somehow the smbd process is not getting
the last message from the PC, but I have no idea where it's getting
lost.
--network traffic--
cctrxc.canterbury.ac.nz -> cantua_fddi TCP D=139 S=1682
Ack=832309483 Seq=765650 Len=122 Win=7524
cantua_fddi -> cctrxc.canterbury.ac.nz TCP D=1682 S=139
Ack=765772 Seq=832309483 Len=66 Win=17520
cctrxc.canterbury.ac.nz -> cantua_fddi TCP D=139 S=1682
Ack=832309549 Seq=765772 Len=122 Win=7458
cantua_fddi -> cctrxc.canterbury.ac.nz TCP D=1682 S=139
Ack=765894 Seq=832309549 Len=39 Win=17520
cctrxc.canterbury.ac.nz -> cantua_fddi TCP D=139 S=1682
Ack=832309588 Seq=765894 Len=0 Win=7419
--truss of smbd---
stat("pcrubbish/Media", 0xEFFFFB84) = 0
utime("pcrubbish/Media", 0xEFFFF77C) = 0
stat("pcrubbish/Media", 0xEFFFF688) = 0
write(5, "\0\0\0 >FF S M B 2\0\0\0".., 66) = 66
poll(0xEFFFDC18, 2, 10000) = 1
read(5, "\0\0\0 v", 4) = 4
read(5, "FF S M B 2\0\0\0\01803\0".., 118) = 118
time() = 895799717
stat("pcrubbish/Media", 0xEFFFF208) = 0
stat("pcrubbish/Media", 0xEFFFFB84) = 0
write(5, "\0\0\0 #FF S M B 201\0 |".., 39) = 39
poll(0xEFFFDC18, 2, 10000) (sleeping...)
poll(0xEFFFDC18, 2, 10000) = 0
--smb.conf--
[global]
workgroup = UOCNT
server string = Cantua Samba Server
hosts allow = 132.181. 127.
load printers = yes
printcap name = lpstat
printing = sysv
guest account = guest
log file = /usr/local/samba/var/log.%m
max log size = 300
short preserve case = yes
preserve case = yes
lock directory = /usr/local/samba/var/locks
locking = no
share modes = no
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
include = /users/%g/%u/smb.conf
socket options = TCP_NODELAY
interfaces = 132.181.1.102/24 132.181.30.2/26
local master = yes
os level = 30
domain master = no
preferred master = yes
wins support = no
wins server = 132.181.30.133
dns proxy = yes
netbios aliases = ntfs1
#===== Share Definitions====[homes]
comment = Home Directories
browseable = yes
create mode = 0700
writable = yes
; dos filetimes = true
; fake oplocks = yes
# Un-comment the following and create the netlogon directory for
# Domain Logons
[netlogon]
comment = Network Logon Service
path = /archive/netlogon
guest ok = yes
writable = no
printable = no
browseable = yes
share modes = no
dos filetimes = true
fake oplocks = yes
Cheers, Dave
-----------------------------------------------------------------
The taller the bamboo grows, the lower it bends.
-- Chinese saying
-----------------------------------------------------------------
Dave Cottle Consultant
Computer Services, Room 205 University of Canterbury
d.cottle@csc.canterbury.ac.nz Tel. 366 7001 ext. 8319