[Samba] Can not cancel print job

Gerald (Jerry) Carter jerry at samba.org
Sun Mar 12 23:24:59 GMT 2006

Hash: SHA1

Andrew Watkins wrote:
> I think I may have found one problem and it could be a BUG in samba or a
> problem with the
> Solaris printing system.
> If you setup printers on samba host which is not the real print server
> then you get it problems
> with the solaris printing system adding on @hostname.
> For example:
> Step1)    "\\medusa\lp131"  is allowing printing, but the real  printer
> server is on another machine.
> Step 2)    If you send a few jobs to this printer you see this on the
> unix front:
>               medusa# lpstat
>                lp131-530              andrew at medusa.dcs.bbk.ac.uk  
> 48651   Mar 09 19:45
>                lp131-526              andrew at medusa.dcs.bbk.ac.uk  
> 48651   Mar 09 19:45
> Step 3) But when you try to cancel the jobs samba thinks you are not the
> owner
>            looking at printing.c
>                "is_owner"  will return false, since "pjob->user"  =
> "andrew at medusa.dcs.bbk.ac.uk"
>                 so it ends up comparing  "user at host"  with  "user".
> Any thoughts?

Samba assumes that root can remove the job.  The print queue management
design is based on that assumption.  However, if you are spooling
to printers on other servers, this doesn't necessarily hold true.
Honestly I think the printing layer in smbd should be rewritten to
support some of the newer features of systems like cups and lprng.
But for now, the current design generally works.

cheers, jerry
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the samba mailing list