printing on WIN2k from linux via CUPS

Anonymous anonymous at easysw.com
Wed Mar 2 17:53:30 PST 2005


i run a linux box with the latest CUPS and SAMBA 2.2. i want to print on a laserjet connected to a win2k box. using smbspool and the uri smb://guest:guest@alfred/laserjet produces a printout. using the same uri in cups (and it is correct in the printer.conf file and as documented in the sam) gives the following error message in error_log:

D [02/Mar/2005:17:30:42 -0800] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin
"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[2]="USER=root"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[3]="CHARSET=utf-8"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[4]="LANG=en_US"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[5]="TZ=US/Pacific"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[6]="PPD=/etc/cups/ppd/hplj1320.ppd"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[11]="DEVICE_URI=smb://alfred/hplj1320ps"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[12]="PRINTER=hplj1320"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[15]="CUPS_SERVER=localhost"
D [02/Mar/2005:17:30:42 -0800] StartJob: envp[16]="IPP_PORT=631"

E [02/Mar/2005:17:30:43 -0800] [Job 16] SMB tree connect failed: NT_STATUS_ACCESS_DENIED
E [02/Mar/2005:17:30:43 -0800] [Job 16] Unable to connect to SAMBA host, will retry in 60
 seconds...: Success


obviously the transmitted device_uri is missing the user/password and connection is refused.

anybody has a solution for this?

thanks
John D





More information about the cups mailing list