LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-18-2005, 12:55 PM   #1
marier
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
yet another samba q: browsing & printing w/ cups to XP


Dear Readers,

I am having troubles when connecting to a Windows XP machine:
1 - Unable to print to XP using CUPS
2 - Unable to browse shares on the Windows machine.

This occurs with iptables shut off, so it is not a firewall problem.

CUPS fails: "Connection failed with error NT_STATUS_BAD_NETWORK_NAME" when configured with the following /etc/cups/printers.conf entry:
Code:
<DefaultPrinter printer>
Info Created by redhat-config-printer 0.6.x
DeviceURI smb://printacct:Password@WORKGROUP/windowsxp/printer
Location 
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
I was able to send something to the XP print queue with
Code:
smbclient '//windowsxp/printer' -c 'put test.txt'
(null password)
I am not sure whether or not smbclient supports URIs, but '//user:Passwd@windowsxp/printer' fails with "connection to user:Passwd@windowsxp failed" (also true if the workgroup is included). I am not sure where the problem lies. I have seen a couple of other posts related to this error, but it is not clear to me that the situations are the same.

With respect to browsing the XP box, I can see XP from the FC3 file browser (appears in network:/// but not in smb:///) and can list default shares using smbclient -L (see output below), but user and printer shares are not visible. When I connect to either a Windows XP machine or the linux box from another windows machine, everything is fine. All machines are configured to be in the same Windows workgroup.

The Samba configuration file is below. Any suggestions would be appreciated.

Thanks,
Marie

smbclient output
Code:
fedora_core3> smbclient -L xpmachine
Password: [return]
Domain=[XPMACHINE] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       Remote IPC
        D$              Disk      Default share
        print$          Disk      Printer Drivers
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
Domain=[XPMACHINE] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
Samba config
Code:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/08/18 10:22:21

# Global parameters
[global]
	workgroup = CHIROPTERA
	server string = Narwhal
	username map = /etc/samba/smbusers
	log file = /var/log/samba/%m.log
	max log size = 50
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	printcap name = /etc/printcap
	dns proxy = No
	idmap uid = 16777216-33554431
	idmap gid = 16777216-33554431
	cups options = raw

[homes]
	comment = Home Directories
	read only = No
	browseable = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	printable = Yes
	browseable = No

[user1]
	path = /home/user1
	valid users = user2, user1
	read only = No

[lab]
	path = /lab
	valid users = user2, user1
	read only = No
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
printing accounts & samba/cups mmcampbe Linux - Networking 0 09-22-2005 01:15 PM
SAMBA & CUPS (Linux & Windows Printing) xcythe Linux - Networking 4 06-12-2005 11:46 AM
Printing from Linux to WinXP (SAMBA & CUPS) Yoda_Oz Linux - Networking 0 02-03-2005 09:20 PM
CUPS SAMBA & multi-tray printing bohara Linux - Networking 0 12-30-2003 03:24 PM
Printing using Samba & CUPS Defboy2k Linux - Networking 0 01-31-2003 03:50 AM

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

All times are GMT -5. The time now is 09:24 PM.

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