[Samba] Re: samba 2.27 as print server

Robert Robertedstrom at yahoo.com
Mon Oct 27 17:54:01 GMT 2003


>From man lpr

       -r   The DREADED REMOVE AFTER PRINTING option.  Beware,  for  lpr
will
            delete  the  files  after  spooling  them.  Present by demand
from
            users for compatibility with other  Berkeley  lpr
implementation,
            but really should NOT be present.


Thus eliminating the rm %s.  The thing is that the document does not reach
that far.  It only spools a 0 byte file.  The spool directory does not
matter.  The directory permissions for the spool file are 1777 so users can
create spool jobs there.




"Kurt Pfeifle" <kpfeifle at danka.de> wrote in message
news:3F9BE9F2.5030708 at danka.de...
> > [Samba] Re: samba 2.27 as print server
> >
> >     * To: samba at listsdotsambadotorg
> >     * Subject: [Samba] Re: samba 2.27 as print server
> >     * From: "Robert" <Robertedstrom at yahoodotcom>
> >     * Date: Fri, 24 Oct 2003 21:30:40 -0500
> >
> > My original post is http://lists.samba.org/archive/samba/msg72613.html.
> >
> >
> > [global]
>
> [....]
>
> >  printing = lprng
> >  print command = lpr -U%u -P%p -r %s
>
> As I said: you are missing a ";rm %s" at the end of your print command...
> Let it be
>
>     print command = lpr -U%u -P%p -r %s; rm %s
>
> and your problem should be gone...
>
> See also
>
>    http://samba.vernstok.nl/htmldocs/Samba-HOWTO-Collection.html#printing
>
>
> >  lpq command = lpq -U%u -P%p
> >  lprm command = lprm -U%u -P%p %j
> >  lppause command = lpc -U%u hold  %p %j
> >  lpresume command = lpc -U%u release%p %j
> >  queuepause command = lpq -U%u stop %p
> >  queueresume command = lpq -U%u start %p
> >
> > [ipc$]
>
> What do you need this for???
>
> >  path = /tmp
> >  hosts allow = 192.168.0.0/24 127.0.0.1
> >  hosts deny = 0.0.0.0/0
> >
> > [Lexmark]
> >  comment = "Lexmark Z22 Color JetPrinter"
> >  use client driver = yes
> >  path = /etc/samba/printers/Lexmark
>
> That is not a good way to define the spool path....
> "/etc/" is for other things. Better use "/var/spool/samba/"
>
> >  printable = Yes
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>







More information about the samba mailing list