LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2004, 07:49 PM   #1
david.skinner
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Mandriva 2006 64
Posts: 45

Rep: Reputation: 15
Cups cant connect to printer on XP


I cann't get my cups server to talk to my windows XP Printers. Sincen last using them I have upgraded cups, samba, and XP SP2. but this seems a deep problem.

I have turned off the XP soft firewalls. The interesting thing is that I can manually connect to the printer shares using either smbclient and smbspool. These commands work as follows:

The SMBClient is:
Code:
[root@server cups]# smbclient //kates/HP_Colour -W skinner.co.nz -U user%pw -d 3 -c "put /root/test"
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface ip=192.168.0.100 bcast=192.168.0.255 nmask=255.255.255.0
Client started (version 3.0.6).
Connecting to 192.168.0.105 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x62890215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
Domain=[SKINNER.CO.NZ] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
dos_clean_name [\\/root/test]
putting file /root/test as \/root/test (4.9 kb/s) (average 4.9 kb/s)
Likewise the SMBspool works as follows
Code:
smbspool smb://user:pw@skinner.co.nz/kates/HP_Colour "92" "root" "" "1" "" /etc/passwd
My cups printer definition is
Code:
# Printer configuration file for CUPS v1.1.20
# Written by cupsd on Sun 07 Nov 2004 18:11:56 NZDT
<DefaultPrinter HPT>
Info HP PSC 2400 Foomatic/hpijs (recommended)
Location Kates Office
DeviceURI smb://user:pw@skinner.co.nz/kates/HP_Colour
State idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
Which results in the following debug error_log messages from cups when I try to print
Code:
D [08/Nov/2004:14:32:45 +1300] StartJob: argv = "HPT","93","root","passwd","1","page-top=36 page-bottom=36 page-left=36 page-right=36 cpi=12 lpi=7 wrap scaling=100","/var/spool/cups/d00093-001"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[2]="USER=root"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[3]="CHARSET=iso-8859-15"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[4]="LANG=en"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[5]="PPD=/etc/cups/ppd/HPT.ppd"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[7]="RIP_MAX_CACHE=8m"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[9]="CONTENT_TYPE=text/plain"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[10]="DEVICE_URI=smb://skinner.co.nz/kates/HP_Colour"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[11]="PRINTER=HPT"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[14]="CUPS_SERVER=localhost"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[15]="IPP_PORT=631"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[16]="NLSPATH=/usr/share/locale/%l/%N"
D [08/Nov/2004:14:32:45 +1300] StartJob: statusfds = [ 7 8 ]
D [08/Nov/2004:14:32:45 +1300] StartJob: filterfds[1] = [ 9 -1 ]
D [08/Nov/2004:14:32:45 +1300] StartJob: backend = "/usr/lib/cups/backend/smb"
D [08/Nov/2004:14:32:45 +1300] StartJob: filterfds[0] = [ -1 10 ]
D [08/Nov/2004:14:32:45 +1300] start_process("/usr/lib/cups/backend/smb", 0xbffefd00, 0xbffef070, 9, 10, 8)
I [08/Nov/2004:14:32:45 +1300] Started backend /usr/lib/cups/backend/smb (PID 9629) for job 93.
D [08/Nov/2004:14:32:45 +1300] ProcessIPPRequest: 5 status_code=0
D [08/Nov/2004:14:32:45 +1300] CloseClient() 5
E [08/Nov/2004:14:32:45 +1300] [Job 93] NT_STATUS_ACCESS_DENIED opening remote file passwd
D [08/Nov/2004:14:32:45 +1300] UpdateJob: job 93, file 0 is complete.
D [08/Nov/2004:14:32:45 +1300] CancelJob: id = 93
D [08/Nov/2004:14:32:45 +1300] StopJob: id = 93, force = 0
D [08/Nov/2004:14:32:45 +1300] StopJob: printer state is 3
E [08/Nov/2004:14:32:45 +1300] PID 9629 stopped with status 1!
Sorry about the long dumps but this one has me stumped. It would appear that the cups messaging is getting blocked but I can get through manually with the same access parameters. Any guidence or thoughts appreciated.
David
 
Old 11-25-2004, 01:41 AM   #2
david.skinner
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Mandriva 2006 64
Posts: 45

Original Poster
Rep: Reputation: 15
Further investigation gets even stranger...

Using the app /usr/bin/smbspool3 I can dump a file straight to the smb printer proving to me that the problem is not on the windows end. However when cups calls this utility it returns an error message saying can't connect. Whats even stranger is that having turned on login logging on the windows machine it does not see the attempted connection. So I'm guessing that smbspool3 is being passed incorrect parameters. Any views on where to go from here would be appreciated.
D.
 
  


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
Help printer from a samba shared printer from linux (using cups) epod69 Linux - Networking 3 12-04-2005 10:44 PM
parrellel printer in CUPS? No parellel printer option... servnov Linux - General 3 10-31-2004 02:08 PM
CUPS can't connect javamdk Linux - Newbie 3 07-09-2004 06:45 PM
how do i share a printer, then connect to that printer? darklordzim Linux - Newbie 5 05-01-2004 08:38 AM
How to connect Windows printer (cups+Samba)? Waldi Slackware 8 08-31-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 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