Results 1 to 10 of 21
To yall,
I have 3 pc's (1 RedHat Linux, 1 Win2K, 1 WinXP) all networked behind a DSL router. Samba is running on the Linux box. I can connect to ...
- 06-22-2003 #1Just Joined!
- Join Date
- Jun 2003
- Posts
- 11
Samba: Cant see windows by name
To yall,
I have 3 pc's (1 RedHat Linux, 1 Win2K, 1 WinXP) all networked behind a DSL router. Samba is running on the Linux box. I can connect to and browse the Linux box from both Windows boxes, however I cannot do the same from the Linux box (using nmblookup or smbclient).
ie: smbclient \\\\windowsboxname\\sharename or smbclient -L windowsboxname
I can connect to the Windows boxes from the LInux box when I use IP addresses.
ie smbclient \\\\192.168.0.4\\share
My problem is that both of the Windows boxes receive their IP from DHCP and I do not want to hard code them with an IP. I have tried to set up the Linux box as a WINS server for the network but that did not seem to work either (I must admit, I don't know much about WINS, but I have followed many how-to's). Any suggestions.
Thanks in advance Yall,
Here is my smb.conf:
[global]
netbios name = manning1
workgroup = shelbyville
security = user
encrypt passwords = yes
server string = Pauls Linux Box
wins support = yes
domain master = yes
domain logons = yes
name resolve order = wins lmhosts host bcast
preferred master = yes
wins proxy = yes
[music]
comment = Directory for Shared Music Files
browseable = yes
path = /home/music
read only = no
create mode = 0760
directory mode = 0770
valid users = xxxxx xxxxx
public = no
force group = music
[pictures]
comment = Directory for Shared Picture Files
browseable = yes
path = /home/pictures
read only = no
create mode = 0760
directory mode = 0770
valid users = xxxxx xxxxx
public = no
force group = pictures
- 06-22-2003 #2Linux Engineer
- Join Date
- Nov 2002
- Location
- Queens, NY
- Posts
- 1,319
smbclient //server/service
instead of
smbclient \\\\server\\service
In UNIX/Linux, directory separator is a forward slash. Why are you using four back slashes? Even in Windows the standard is two followed by one slash.The best things in life are free.
- 06-22-2003 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Well, he's using four back slashes since the shell converts them into two by means of escaping. And, yes, you can use backslashed; samba supports that.
Anyway, the problem seems strange. smbclient should have any problem looking them up with NMB. Try and see if the nmblookup program can look up a NetBIOS name properly.
- 06-22-2003 #4Just Joined!
- Join Date
- Jun 2003
- Posts
- 11
Here is my nmblookup:
First time I lookup the LInux name:
[pmanning@manning1 pmanning]$ nmblookup manning1
querying manning1 on 192.168.0.255
192.168.0.21 manning1<00>
Then I lookup the Windows name:
[pmanning@manning1 pmanning]$ nmblookup buttafuco
querying buttafuco on 192.168.0.255
name_query failed to find name buttafuco
- 06-22-2003 #5Just Joined!
- Join Date
- Jun 2003
- Posts
- 11
Here is some more:
[pmanning@manning1 pmanning]$ nmblookup '*'
querying * on 192.168.0.255
192.168.0.21 *<00>
Tried to list all shares on Linux box:
[pmanning@manning1 pmanning]$ smbclient -L manning1
added interface ip=192.168.0.21 bcast=192.168.0.255 nmask=255.255.255.0
Got a positive name query response from 127.0.0.1 ( 192.168.0.21 )
Password:
Anonymous login successful
Domain=[SHELBYVILLE] OS=[Unix] Server=[Samba 2.2.7-security-rollup-fix]
Sharename Type Comment
--------- ---- -------
music Disk Directory for Shared Music Files
pictures Disk Directory for Shared Picture Files
IPC$ IPC IPC Service (Pauls Linux Box)
ADMIN$ Disk IPC Service (Pauls Linux Box)
Server Comment
--------- -------
BUTTAFUCO
MANNING1 Pauls Linux Box
Workgroup Master
--------- -------
SHELBYVILLE MANNING1
Tried to list all shares on Windows Box (Buttafuco 192.168.0.4)
[pmanning@manning1 pmanning]$ smbclient -L 192.168.0.4
added interface ip=192.168.0.21 bcast=192.168.0.255 nmask=255.255.255.0
session request to 192.168.0.4 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[SHELBYVILLE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
share Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
Server Comment
--------- -------
Workgroup Master
--------- -------
[/b]
- 06-22-2003 #6Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Check what "nmblookup -A 192.168.0.4" returns.
- 06-22-2003 #7Just Joined!
- Join Date
- Jun 2003
- Posts
- 11
It returns nothing
[root@manning1 etc]# nmblookup -A 192.168.0.4
Looking up status of 192.168.0.4
[root@manning1 etc]#
- 06-22-2003 #8Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Do you have some kind of firewall running on the Windows computers?
- 06-22-2003 #9Just Joined!
- Join Date
- Jun 2003
- Posts
- 11
no firewall on the windows box.
I have iptables running on the linux box.
I allow input and output on ports 137 - 139
- 06-22-2003 #10Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Try if "nmblookup -r -A 192.168.0.4" works better (needs to be run as root).


Reply With Quote
