Set up samba.

William Rowden rowdenw at
Sat Dec 22 18:13:02 PST 2001

Needing transparent file transfer from Linux (Red Hat 7.2) and
Windows 98, I started Samba. (NFS requires perhaps purchasing and
then installing a client on several PCs. Windoze 98's handling of
ftp sites is not consistent. That leaves SMB.)

The Linux server knows itself as hurston at; there's no
local DNS. As I understand it, the NetBIOS broadcasts should work
without DNS. I find this broadcast network frustrating, though, as
shares disappear as they time out and reappear on use. (BTW, the
DHCP server is a router, not the Linux server.) Pings work to and
from the Win98 boxes at various 192.168.0 addresses.

Working through doc/samba-2.2.1a/docs/textdocs/DIAGNOSIS.txt, I get
the following failure in "TEST 8" from the Win98 PCs:

C:\WINDOWS>net view \\hurston

Error 53: The computer name specified in the network path
cannot be located. Make sure you are specifying the
computer name correctly, or try again later when the remote
computer is available.

For this one of the suggested solutions is "fixup the nmbd
installation." I'm confused, and recommendations for doing this
would be welcome. I've set "log level = 2", but nothing appears in
"/var/log/samba/log.nmbd" except messages about winning elections.

I've tested "/etc/samba/smb.conf":

[root at hurston samba]# testparm smb.conf
Processing section "[tmp]"
Loaded services file OK.

>From the Linux box, "smbclient -L" works for all Linux and Win98

shares. The only difference is that the Win98 boxes consider one of
themselves the master, while the Linux box considers itself as
master. The following setting in "smb.conf", however, results in an
unbrowseable network for the Win98 boxes when `smbd` restarts:

preferred master = yes

Note that "smb.conf" file has the following:

comment = Temporary file space
path = /tmp
read only = yes
public = yes

In case it helps, here are some of the previous tests:

[root at hurston samba]# nmblookup -B hurston __SAMBA__
INFO: Debug class all level = 2 (pid 11322 from pid 11322)
added interface ip= bcast=
querying __SAMBA__ on
Got a positive name query response from ( ) __SAMBA__<00>

[root at hurston root]# nmblookup -d 2 '*'
INFO: Debug class all level = 2 (pid 11542 from pid 11542)
added interface ip= bcast=
querying * on
Got a positive name query response from ( )
Got a positive name query response from ( ) *<00> *<00>

[root at hurston root]# smbclient //hurston/tmp -Uguest%
INFO: Debug class all level = 2 (pid 11543 from pid 11543)
added interface ip= bcast=
Anonymous login successful
Domain=[HARLEM] OS=[Unix] Server=[Samba 2.2.1a]

Am I overlooking something?
Well I believe in God, and the only thing that scares me is Keyser Soze.

More information about the Linux mailing list