Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!bofh.dot!news.ultranet.com!homer.alpha.net!solaris.cc.vt.edu!newsfeed.internetmci.com!in2.uu.net!fox.almaden.ibm.com!garlic.com!news.scruz.net!not-for-mail
From: bill@qstools.com (Bill Cox)
Newsgroups: comp.protocols.smb,comp.unix.bsd.freebsd.misc
Subject: FreeBSD -> NT via samba
Date: 13 May 1996 15:50:21 GMT
Organization: Sirius Cybernetics, Sirius City branch
Lines: 124
Message-ID: <4n7lnt$odf@news.scruz.net>
NNTP-Posting-Host: 205.179.159.64
Summary: Can't see some files
Keywords: NT samba FreeBSD2.1R
X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]
Xref: euryale.cc.adfa.oz.au comp.protocols.smb:5375 comp.unix.bsd.freebsd.misc:19307
Problem: NT machine can see some files/directories and
not others.
I have built samba with the DES library; it's version
1.9.14 off the FreeBSD 2.1R CD-ROM 'ports' collection.
I run the daemons under inetd, /etc/inetd.conf follows:
netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd \
-d5 -l/var/log/smblogs/smbd.log -s/etc/smb.conf
netbios-ns dgram udp wait root /usr/local/samba/bin/nmbd nmbd \
-H/etc/netbios.hosts -d5 -l/var/log/smblogs/nmbd.log -B205.179.159.255
Here are the relevant /etc/services lines:
netbios-ns 137/tcp #NETBIOS Name Service
netbios-ns 137/udp #NETBIOS Name Service
netbios-ssn 139/tcp #NETBIOS Session Service
netbios-ssn 139/udp #NETBIOS Session Service
Here's the samba config file (/etc/smb.conf):
[global]
debuglevel = 3
mangling char =
mangled names = no
case sensitive = yes
preserve case = yes
mangle case = no
encrypt passwords = yes
security = user
password level = 10
keep alive = 60
[thuvia]
comment = Public Stuff
path = /
public = no
valid users = bill administrator
writable = yes
printable = no
[homes]
comment = Home directories
path = /users/%u
valid users = bill administrator
writable = yes
[tmp]
comment = temporary files
path = /tmp
read only = yes
Here's the problem: after running the following command under
NT, I can't see any files or subdirectories under thuvia's
/tmp directory. Here's the NT command:
net use z: \\thuvia\tmp * /user:bill
<enter the password at the prompt>
Response is:
The command completed successfully.
go to Z:, enter dir, and get "File Not Found"
Yet there are several world-readable files in thuvia's /tmp:
-rw-rw-r-- 1 bill wheel 0 May 12 11:17 25137
-rw-rw-r-- 1 bill wheel 3683 May 11 19:10 fvwmrc00176
-rw-rw-r-- 1 bill wheel 0 May 12 05:21 tinyfile
As you can see, I've got the diagnostic level up to max, and the log
doesn't help much. Here's the log from the /tmp session
above:
creating new dirptr 5 for path ., expect_close = 1
05/13/96 08:38:25 Transaction 37 of length 64
switch message SMBtconX (pid 26316)
valid uid 1000 mapped to vuid 0 (user=bill)
ACCEPTED: validated uid ok as non-guest
found free connection number 101
Connect path is /tmp
bill is in 3 groups
0 0 5
valid uid 1000 mapped to vuid 0 (user=bill)
chdir to /tmp
chdir to /
05/13/96 08:38:25 tarkas.qstools.com (205.179.159.65) \
connect to service tmp as user bill (u
id=1000,gid=0) (pid 26316)
05/13/96 08:38:25 tconX service=tmp user=bill cnum=101
05/13/96 08:38:28 Transaction 38 of length 74
switch message SMBtrans2 (pid 26316)
valid uid 1000 mapped to vuid 0 (user=bill)
chdir to /tmp
call_trans2qfsinfo: cnum = 101, level = 2
05/13/96 08:38:29 Transaction 39 of length 74
switch message SMBtrans2 (pid 26316)
valid uid 1000 mapped to vuid 0 (user=bill)
call_trans2qfsinfo: cnum = 101, level = 261
05/13/96 08:38:29 Transaction 40 of length 74
switch message SMBtrans2 (pid 26316)
valid uid 1000 mapped to vuid 0 (user=bill)
call_trans2qfsinfo: cnum = 101, level = 2
05/13/96 08:38:29 Transaction 41 of length 87
switch message SMBtrans2 (pid 26316)
valid uid 1000 mapped to vuid 0 (user=bill)
call_trans2findfirst: dirtype = 22, maxentries = 170, \
close_after_first=0, close_if_end = 0
requires_resume_key = 1 level = 260, max_data_bytes = 16384
unix_clean_name [./*]
unix_clean_name [./*]
unix_clean_name [.]
creating new dirptr 6 for path ., expect_close = 1
chdir to /
Heartfelt thanks to anyone who's waded through this far..
It seems *so* close!
--
Bill Cox Software Janitor
Giving power and money to politicians is like giving
whisky and car keys to teenagers. P.J. O'Rourke