I'm running Samba 2.0.3 from the pre-built binary (ftp://sunsite.org.uk/packages/samba/Binary_Packages/solaris/samba-2.0.3 -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? -- Mike Clarke Systems Support Engineer Siemens Power Generation Limited. Tel: +44 191 275 2224 Fax: +44 191 275 2205
"Clarke, Mike" wrote:> > I'm running Samba 2.0.3 from the pre-built binary > (ftp://sunsite.org.uk/packages/samba/Binary_Packages/solaris/samba-2.0.3 > -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@icai.upco.es> -o) ICAI - Universidad Pontificia Comillas /\\ Administrador de Sistemas _\_v
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 = blackholeTry to set writeable=yes Also check permissions on samba spool directory (sticky bit set?). Hope this helps Michal
Michal Jezierski <heja@xox.pl> wrote:>Mike Clarke wrote: >> >> I've defined a printer in smb.conf, from a PC (NT 4.0) I can sendprints>> 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 PChave>> no effect - not even any messages in the logs. >> >> The unix print queue is set up OK and reacts to local lpc, lpq, lprand>> lprm commands just fine. > >For any user?No, just the sysadmins responsible for the NT boxes. The object of the exercise is to replace a variety of different dumb network print server boxes with some surplus low end PCs as Samba print servers running Linux. For this solution to gain favour with the NT administrators I'll have to offer them (at least) the same level of control as they already have. [snip]>Try to set writeable=yes > >Also check permissions on samba spool directory (sticky bit set?).Yes tried writeable=yes and chmod 777 and 1777, still nothing :-( -- Mike Clarke Systems Support Engineer Siemens Power Generation Limited. Tel: +44 191 275 2224 Fax: +44 191 275 2205