{"id":276,"date":"2006-07-26T13:14:18","date_gmt":"2006-07-26T18:14:18","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=276"},"modified":"2006-07-26T13:14:18","modified_gmt":"2006-07-26T18:14:18","slug":"win2kxp-samba-clients-can-submit-print-jobs","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=276","title":{"rendered":"Win2K\/XP samba clients can submit print jobs"},"content":{"rendered":"<p>\nApologies if this is an old chestnut, but I&#8217;ve seen identical queries all over the linux groups on google, and no workaround.<\/p>\n<p><!--more--><\/p>\n<p>Apologies if this is an old chestnut, but I&#8217;ve seen identical queries all over the linux groups on google, and no workaround.<\/p>\n<p>Scenario:<\/p>\n<p>Win2K\/XP samba clients can submit print jobs to printer on samba server(and they print), but dbl click on the samba printer or &#8220;see whats printing&#8221; gives the titlebar message:<\/p>\n<p>[printername] on [servername] Access denied, unable to connect.<\/p>\n<p>you cant cancel jobs, etc<\/p>\n<p>This drove me bonkers until I cranked up logging to level 3 and RTFM (man smb.conf)<br \/>\nquote <br \/>\n.. the OpenPrint_erEx() call will fail. The result is that the<br \/>\nclient will now display an &#8220;Access Denied; Unable<br \/>\nto connect&#8221; message in the printer queue window<br \/>\n(even though jobs may successfully be printed).<\/p>\n<p>This is the &#8220;use client driver&#8221; section. And it applies in my case where I have a winXPhome <br \/>\nconnecting to a laser printer on the samba box.<\/p>\n<p>I&#8217;m not doing the [print$] share and installing all the drivers on the samba box (yet). This is well worth it but some other time.<\/p>\n<p>to repeat, setting up [print$] is The Right Way To Do It. <\/p>\n<p>Horrid Hack Answer: &#8220;use client driver = yes&#8221; see below<\/p>\n<p>I dont want samba to grab everything in \/etc\/printcap, thus<\/p>\n<p>[global] <br \/>\n&#8230;<br \/>\nload printers = no<br \/>\n&#8230;<\/p>\n<p>The printer SHARE name is &#8220;Panasonic&#8221;, the entry in \/etc\/printcap is KXP6500 and its<br \/>\nset as a &#8220;raw&#8221; queue as it gets the preprocessed bytestream from the samba client.<br \/>\nThe spool file is \/var\/lpd\/samba as its lprng&#8217;s job to take the file from here and <br \/>\nshovel it into the \/var\/spool\/lpd\/KXP6500 queue<\/p>\n<p>thus<\/p>\n<p>[Panasonic]<br \/>\nbrowsable = yes<br \/>\nprintable = yes<br \/>\nprinting = lprng<br \/>\nprinter = KXP6500<br \/>\nprint command = \/usr\/bin\/lpr -b -P%p -r %s<br \/>\nlpq command = \/usr\/bin\/lpq -P%p<br \/>\nlprm command = \/usr\/bin\/lprm -P%p %j<br \/>\npath = \/var\/spool\/samba<br \/>\nmin print space = 2000<br \/>\n#<br \/>\n# CAUTION! this does not apply to win95\/98\/ME<br \/>\n# it tells winNT\/2K\/XP clients to use a local<br \/>\n# printer driver<br \/>\n# stops the &#8220;acess denied&#8221; in windows when trying to view<br \/>\n# print queue<br \/>\nuse client driver = yes<\/p>\n<p>\nnb, perms, owner, group, for \/var\/spool\/samba are drwxrwxrwt root root<\/p>\n<p>\nHey presto! I can examine the queue, suspend, restart, cancel print jobs etc.<\/p>\n<p>setting &#8220;done_jobs=0&#8221; in lpd.conf will get rid of the long list of completed jobs<br \/>\nthat windows will display for days afterwards.<\/p>\n<p>Hope this helps<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apologies if this is an old chestnut, but I&#8217;ve seen identical queries all over the linux groups on google, and no workaround.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-276","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=276"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/276\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}