LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-15-2003, 03:57 PM   #1
ccspaul
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
samba print from RH9 to XP Home


This works:

[root@superior root]# smbclient \\\\192.168.1.101\\printer2 -N
added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0
session request to 192.168.1.101 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> exit

But this does not:

[root@superior root]# smbclient \\\\pctammy\\printer2 -N
added interface ip=192.168.1.20 bcast=192.168.1.255 nmask=255.255.255.0
Connection to pctammy failed
[root@superior root]#

I have verified that the XP computer has a computer name of "pctammy" and has the ip address of 192.168.1.101.
Any ideas on getting this to work using the computer name?
 
Old 09-15-2003, 05:28 PM   #2
steely
Member
 
Registered: Aug 2003
Location: Houston TX
Distribution: Ubuntu
Posts: 37

Rep: Reputation: 15
You have an entry for pctammy in the host files of both machines?
 
Old 09-15-2003, 11:46 PM   #3
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Sounds like a messed up NetBIOS name service. Lower the os level directive in your SAMBA server(s) config files to make sure they don't become master browsers, then restart all the machines on the network and try again.

A tip: you can use forward slashes with smbclient to save yourself some typing , i.e. these two commands are equivalents:

smbclient //somename/c$ -U administrator -P
smbclient \\\\somename\\c$ -U administrator -P


Don't worry about this: Micro$oft's Network Neighbourhood system or NetBIOS Name Service (NMB) is one of the most messed up systems I have ever come across. It never works properly. An easy solution is what I have proposed above: let the Windoze machines maintain the lists of names and IP addresses (this is done automatically and you can't really control this effectively, other than restart the computer). You can do this by lowering the value of the os level directive in your smb.conf file.

Also check the latest SAMBA docs, I believe there are some registry patches out there that you should apply to Windoze XP clients before they can play nice with SAMBA.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
win xp home edition and samba home shares scheidel21 Linux - Software 8 10-09-2008 12:47 AM
using samba, cups to print to XP on home LAN rfw62 Linux - Software 1 05-06-2005 05:04 PM
Samba print share from RH9 to WinXP nick_uk Linux - Software 5 08-11-2003 08:41 AM
Samba print share from RH9 to WinXP nick_uk Linux - Software 0 07-30-2003 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration