samba-ntdom digest, Vol 1 #214 - 40 msgs

Graeme.Vetterlein at ntl.com Graeme.Vetterlein at ntl.com
Thu Dec 14 12:51:46 GMT 2000


> Message: 15
> Date: Wed, 13 Dec 2000 11:28:25 +0200
> From: Dolgopolov Sergey <virgo at azcher.kharkov.ua>
> To: "samba-ntdom at us5.samba.org" <samba-ntdom at us5.samba.org>
> Subject: Printing from Linux on NT4Wks
> 
> Hello.
> I want to print out from Linux (Samba 2.0.7 as PDC) on the 
> printer which
> stands on NT4 Wks.
> But to regret I it can not make.
> Mine /etc/printcap
> hewlett:\
>        :sd =/var/spool/lpd/hewlett:\
>        :mx#0:\
>        :sh:\
>        :lp =/dev/null:\
>        :lf =/var/spool/lpd/hewlett/error:\
>        :af =/var/spool/lpd/hewlett/acct\
>        :if =/var/spool/lpd/hewlett/print-net:
> 
> Filter print-net:
> 
>  #!/bin/sh
> client = "finance3"
> share = "HewlettP"
> printfile = "/tmp/smbspool. $$ "
> cat > $printfile
> if [-s $printfile]; then
>   (echo "translate"; echo " print $printfile "; echo "quit") \
>   | smbclient \\\\ $client \\ $share -P -N
> fi
> rm -f $printfile
> 
> When I ship on printing lpr -Phewlett sample.txt file is not typed and
> lies in spool.
> lpc status:
> 
> hewlett:
>         queuing is enabled
>         printing is enabled
>         1 entry in spool area
> 
> Suggest in what an error.
> 
> Sergey. virgo at azcher.kharkov.ua

Couple of points:

	You say printer is enabled (as in enable(1) )
	Did you also say accept(1) ?

The Script you have there is simply a "printer filter"  whatever comes in 
in stdin should be printed. In this case it's printed by sending it to
samba.

So to debug it try doing:

cat /etc/passwd | smbclient //yourservernamehere/yourservicenamehere -N -P
-W theprintersworkgrouphere -U avaliduseridhere

And see what errors you get. My guess is the usual NT password junk :-)

Once you get it working, that's what you need in the filter 





More information about the samba-ntdom mailing list