[lp]
printable = Yes
printer name = lp
; printing = BSD
; print command = /usr/bin/lpr -r %s
path = /var/spool/samba
guest ok = Yes
read only = No
comment = hp
The block should start off with the lpr queue
name. The most important directive for print shares is
printable, which identifies this block as defining
a print share. The printer name needs to match the
Unix printer queue name for the printer you wish to share. If you
have defined a global directive printing (which
defaults to BSD style print queues), you don't need
to worry about explicitly telling Samba how to print to the queue. In
the commented-out print command directive, the
%s stands for the file you wish to print. The
path directive defines the samba print spool
directory. This directory needs to be writable by the
smbd process. Both guest ok and
read only directives are simple access controls.
The comment block is self-explanatory.
After saving your changes and restarting the Samba servers (if
needed), your shares should be browsable by the SMB network. From
Unix, you can print to SMB printers with the following command:
$ smbclient //netbios-name/printer
smb: \> print filename-to-print