Michael Loßin on Fri, 24 May 2002 19:16:19 +0200 (CEST)(envelope-from owner-apsfilter-help@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: apsfilter does not print to samba share


On 22-May-02 Glenn Johnson wrote:
> System info:
> 
> OS:    FreeBSD 4.6-RC
> Samba: Version 2.2.4
> apsfilter: 7.2.2
> Windows: Windows XP
> 
> I have a printer setup on my Windows machine and it is properly set up
> for sharing.  I set up apsfilter and the test page prints fine.  I set
> it up to use the printer on the Windows machine with a guest account.
> 
> I can print using smbclient from the command line.  But I can NOT print
> using apsfilter.

Which smbclient command line works for you?

I guess it's some kind of permission problem, since the
SETUP is done as root, and the spooler probably uses a
non-privileged user (such as "daemon" or "lp") for normal
printing.

I don't use samba myself, but you should try to enable the
specific user (for lpd/LPRng) in the samba configuration
(if that's possible), or even set up your spooler to use
"root" while printing.

> When I print to the printer, using lp, this should
> call the apsfilter script which should then call smbclient.  I get the
> following in '/var/log/lpd-errs':
> 
> May 22 12:12:57 node1 lpd[17774]: lp: job could not be printed
> (cfA031node1.cluster.srrc.usda.gov)

Are there more detailed error messages in the log, or maybe
in the printer's status file? (/var/spool/lp/status*)

> Here is the output of 'aps2file -D' trying to print a text file:

Since aps2file is designed to create a local file, it won't
use smbclient to send data over the network, so there will
be no error here.


HTH
Michael