Andreas Klemm on Fri, 22 Nov 2002 19:05:16 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org)


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

Re: Printing to Win2K share printer with apsfilter via samba fails


Hi !

It's an easy but nasty permission problem.

After enabling debugging in apsfilter (set -x)
you'll notice under /var/spool/lpd/lp/log

[...]
++ '[' -f /usr/local/etc/apsfilter/lp/smbclient.conf ']'
++ find_filter smbclient
++ type smbclient
++ . /usr/local/etc/apsfilter/lp/smbclient.conf
/usr/local/etc/apsfilter/basedir/bin/apsfilter: line 663: /usr/local/etc/apsfilter/lp/smbclient.conf: Permission denied
++ '[' '' ']'
++ eval smbclient ''\''///'\''' -b1400 -N -c ''\''print -'\'''
+++ smbclient /// -b1400 -N -c 'print -'
++ rc=1
++ '[' 1 -ne 0 ']'
++ echo 2
++ exit
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m

root@titan:/var/spool/lpd/lp# ls -l /usr/local/etc/apsfilter/lp/smbclient.conf
-rw-------  1 root  daemon  152 22 Nov 18:32 /usr/local/etc/apsfilter/lp/smbclient.conf

Print services under BSD run under user "daemon".
So, daemon is unable to read the smbclient config.

A chmod g+r /usr/local/etc/apsfilter/lp/smbclient.conf
fixes the problem for me and remote printing is possible.

I'll try to fix the problem in SETUP asap and release a
new apsfilter version which is a bugfix release.

Sorry for the wasted time and the frustration.

Best regards

	Andreas ///

-- 
Andreas Klemm                             /\/\/\/\/\/\/\/\/\/\/\
http://www.64bits.de                     <  Powered by FreeBSD  >
http://www.apsfilter.org/                 \   www.FreeBSD.org  /
http://people.FreeBSD.ORG/~andreas         \/\/\/\/\/\/\/\/\/\/