Controlling unix print queues from PC

Michal Jezierski heja at
Thu May 27 14:29:32 GMT 1999

Mike Clarke wrote:
> I've defined a printer in smb.conf, from a PC (NT 4.0) I can send prints
> to it and view the queue OK but I can't manage the queue in any way.
> Attempts to cancel prints and stop or start the queue from the PC have
> no effect - not even any messages in the logs.
> The unix print queue is set up OK and reacts to local lpc, lpq, lpr and
> lprm commands just fine.

For any user?
> This is what I have in smb.conf:
> [blackhole]
>          comment = Dummy printer for testing
>          path = /var/spool/samba
>          print ok = Yes
>          print command = /usr/ucb/lprm -P%p %s
>          lpq command = /usr/ucb/lpq -P%p
>          lprm command = /usr/ucb/lprm -P%p %j
>          queuepause command = /usr/etc/lpc stop %p
>          queueresume command = /usr/etc/lpc start %p
>          printer name = blackhole

Try to set writeable=yes
Also check permissions on samba spool directory (sticky bit set?).

Hope this helps


More information about the samba mailing list