[SLUG] configuring a samba server

From: Josh Tiner (jtiner@tampabay.rr.com)
Date: Tue Dec 03 2002 - 23:55:12 EST


Hey all,

I recently had to convert one of my favorite linux workstations over to
windows xp thanks to school projects. I know, I hated to do it too, so hold
the flames...

At any rate, here is the current situation. I currently have two boxes: one
is named zeppelin the other is named marlboro. Zeppelin is a winxp
professional box now. Marlboro is running redhat 8.0.

I need marlboro to share some of it's directories to my win box so naturally
I installed samba. After configuring the /etc/samba/smb.conf file and
checking it for sanity I restarted the smbd service on the linux box.

>From my windows machine, I can see my linux box's name, however I cannot see
any of the shares availible to me. Needless to say, that really sucks. I
consulted www.samba.org and went through the trouble shooting guide. This
what they said:

---
Symptom: The HOST machine shows up in the browse list but its shares cannot
be listed by the Windows Explorer nor by the DOS command "net view \\HOST".

Cause: The symptoms imply that the machine named HOST is able to contact the local master browser to publish its NetBIOS name, and the client is able to obtain the list of browseable NetBIOS names from the local master browser, but the client is unable to obtain the IP address of the HOST machine from the WINS server, or having obtained the IP address is unable to establish a direct connection to the HOST machine. Perhaps the HOST machine is offline or a network problem is preventing access. A Microsoft Knowledge Base article (Q145949) says that if there are any invalid share names (too long, contain spaces, etc.) then no share names will be displayed.

Resolution: (1) If you can establish that the HOST machine is online and Samba is running, then the problem may be that the client machine is unable to find the IP address of the HOST machine. As a workaround, open a Command window (Start, Run, cmd), and perform the following commands: CD C:\WINNT\system32\drivers\etc EDIT lmHOSTs

Enter a single line consisting of the IP address of the machine, in dotted-quad notation, followed by a tab, followed by the NetBIOS name of the machine, followed by a tab, followed by the letters #PRE. Note that the NetBIOS name is generally the same as the first component of the fully-qualified domain name. Execute the Save command on the File menu. Exit. Now perform the following command to begin using this file: NBTSTAT -R You can use the "NBTSTAT -c" command to verify that the contents of the lmHOSTs file are correct. At this point you should be able to use "NET VIEW \\HOST" to view the list of shares on the target machine, and you should be able to enter the UNC of the machine in the address bar of Windows Explorer, or click on the name of the machine in the left-hand pane of the Explorer. (2) Ensure that the client can conduct bi-directional communication with the WINS server and with the HOST system. If, for example, ordinary telnet, ftp, or http requests cannot be performed it is unlikely that SMB calls will work. (3) Follow the steps outlined in the Troubleshooting section of this Guide.

Source: Paul Green, Microsoft article Q145949

---

Now I followed these steps perfectly - however my winbox still only lists the samba server, and not the shares beneath it. Very frustrating...

Here are some results from what the linux box sees:

---

[jtiner@marlboro jtiner]$ smbclient -L marlboro added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0 Password: Domain=[HOMEGROUP] OS=[Unix] Server=[Samba 2.2.7]

Sharename Type Comment --------- ---- ------- jtiner_home_d Disk jtiner's home directory IPC$ IPC IPC Service (this is a server string) ADMIN$ Disk IPC Service (this is a server string)

Server Comment --------- ------- MARLBORO this is a server string

Workgroup Master --------- ------- HOMEGROUP MARLBORO [jtiner@marlboro jtiner]$

---

As you can see, it lists it's own shares and information flawlessly. It's been a few years since the last time I worked with smbd - anyone out there have any fresh ideas on how to solve the problem?

-jtiner jtiner@tampabay.rr.com



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:30:26 EDT