Controlling unix print queues from PC

Jorge Gonzalez Villalonga jorgegv at
Wed May 26 10:25:07 GMT 1999

"Clarke, Mike" wrote:
> I'm running Samba 2.0.3 from the pre-built binary
> (
> -sunos-4.1.3.tar.Z) on a Sun IPX with SunOS 4.1.3_U1.
> 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.
> 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
> Any suggestions what I'm doing wrong?

I ran into this problem two weeks ago with Linux and a RH5.2 rpm. It
seems that the package does not set the mode for /var/spool/samba as
1777, and so no one can delete print jobs but root.

Jorge Gonzalez  <jorgegv at>       -o)
ICAI - Universidad Pontificia Comillas       /\\
Administrador de Sistemas                   _\_v

More information about the samba mailing list