Here is a sample working print definition:
I have guest set to ftp in my global section.
The echo stuff is just to log the jobs.
The %J contains the file name sent from windows.
The lpr -Plp -J stuff puts the windows file name (sent as the banner name)
into your print queue.
Samba definition:
[lp]
comment = Raw Printer for Z53
path = /tmp
create mask = 0700
guest ok = yes
hosts allow = 192.168.
printable = Yes
printing = lprng
print command = echo %J %p %s >> /tmp/junkJ;\
a="`echo '%J' | sed "s/^.*-
//"`" ;\
echo This is truncated $a >> /tmp/junkJ;\
/usr/bin/lpr -Plp -J"$a" %s;\
rm %s
lpq command = /usr/bin/lpq -Plp
lprm command = /usr/bin/lprm -Plp %j
lppause command = /usr/sbin/lpc hold -Plp %j
lpresume command = /usr/sbin/lpc release -Plp %j
printer name = lp
The lp definition in /etc/printcap is:
lp|LP|z53-outfiles:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:lp=/dev/lp0:\
:sh:rw:
Note, this is a raw queue, without a filter specified. It just passes
the job straight to the printer.
Joel
On Tue, Dec 17, 2002 at 06:14:32PM +0100, Kalkoul Morad
wrote:> Hi,
>
> I am on RH 8.0 and samba 2.2.7-1 .
>
> Why when I share my printer on my linux my xp client can not connect to
it.
> It can see it in "network neighbourhood" when I want to connect
it , the
> message is : Refused access. Impossible connexion . And On W98 box , a
> printer connected to this LPR has status to < ERROR > . I know that
It's
> caused by my smb.conf:
>
>
> [global]
> workgroup = ARTE
> netbios name = SCRIBE
> server string = Scribe: serveur d'impression Samba %v
> security = SHARE
> log file = /var/log/samba/smb%U.log
> max log size = 50
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> dns proxy = No
> wins server = 172.25.4.12
> guest account = invite
>
> [printers]
> comment = All Printers
> path = /var/spool/samba
> guest ok = Yes
> printable = Yes
> browseable = No
>
> [APOLLINAIRE]
> path = /var/spool/samba
> read only = yes
> guest ok = Yes
> printable = Yes
> printer name = APOLLINAIRE
>
> Someone can help ? Thanks in advance, Mo
>
>
>
>