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