I'm running Samba 2.27 on RH8 system. I've got samba as the print spooler for Windows XP clients and using winbind as the user validation against my Win2K DC. Permissions on the spool directory are root root with the sticky bit on. Clients can delete their own jobs from the que, but the spool directory is not being expunged of print jobs and the last job constantly displays in the client que window. I have not been able to figure out how to resolve this as occasionally people freak out when they see older jobs in the print que and wonder if it is stuck. For whatever reason, the print process is unable to remove the print job from the spool directory after it is sent to the lpd process for printing. Phillip M. Bryant ITT Industries, Advanced Engineering and Sciences Network Administrator Albuquerque, NM 87120 Ph 505-889-7016 Cell 505-385-8668 MCSE 2000, NT 4.0 MCP+I ************************************ This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. ************************************
If you are using lprng, you can add ":done_jobs=0:\" option to your printer's /etc/printcap entry. To delete the jobs, use the "-r" option for the printer's print command. The done_jobs option removes the "printed" jobs from the printer status whereas the -r deletes the spooled jobs. Since it looks like you got your printers working, can you look at my problem? I have a samba server and am trying to get printers to work with XP and 2k clients. 9x clients work just fine. My problem is at http://lists.samba.org/archive/samba/msg73196.html. I would really appreciate if you tell me how you got your setup working. What kind of printers do you have? Thanks in advance. Bob. "Bryant, Phillip -AES" <Phillip.Bryant@itt.com> wrote in message news:3FB53C8FED80D440841DCFE8CB0514CF0F9C0A@AES-MAILCLST.aes.de.ittind.com..
Doug, Yes, I am using LPRNG and will give a look at my config. I've got 9 printers, 5 Laser Jets and 4 Ink jets. How did you associate the Lexmark driver with your samba printer? Did you do it through the gui view of the samba servers print admin or did you associate it through the rpcclient command? Same question goes for how did you install the driver. Did you install the driver from a workstation or from a win2k server resource cd or from a Win2K server? Also, do you have the W32X86 directory created and shared as print$? Date: Thu, 23 Oct 2003 12:48:37 -0500 From: "Robert" <Robertedstrom@yahoo.com> Subject: [Samba] Re: samba 2.27 as print server To: samba@lists.samba.org Message-ID: <bn949p$15c$1@sea.gmane.org> If you are using lprng, you can add ":done_jobs=0:\" option to your printer's /etc/printcap entry. To delete the jobs, use the "-r" option for the printer's print command. The done_jobs option removes the "printed" jobs from the printer status whereas the -r deletes the spooled jobs. Since it looks like you got your printers working, can you look at my problem? I have a samba server and am trying to get printers to work with XP and 2k clients. 9x clients work just fine. My problem is at http://lists.samba.org/archive/samba/msg73196.html. I would really appreciate if you tell me how you got your setup working. What kind of printers do you have? Thanks in advance. Bob. "Bryant, Phillip -AES" <Phillip.Bryant@itt.com> wrote in message news:3FB53C8FED80D440841DCFE8CB0514CF0F9C0A@AES-MAILCLST.aes.de.ittind.c om.. ------------------------------ Message: 28 Date: Thu, 23 Oct 2003 10:46:11 -0700 From: Douglas Phillipson <phillipd@oem.doe.gov> Subject: [Samba] Should I use Winbind if my DC is Samba? To: samba@lists.samba.org Message-ID: <3F9813E3.8020403@oem.doe.gov> Content-Type: text/plain; charset=us-ascii; format=flowed Should I use winbind if my Domain Controller is a samba machine? Or is it only useful if my DC is a real MS DC? Regards Doug P Phillip M. Bryant ITT Industries, Advanced Engineering and Sciences Network Administrator Albuquerque, NM 87120 Ph 505-889-7016 Cell 505-385-8668 MCSE 2000, NT 4.0 MCP+I ************************************ This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. ************************************
Phillip M. Bryant wrote on Samba-Digest:> [Samba] samba 2.27 as print server > > * To: <samba at listsdotsambadotorg> > * Subject: [Samba] samba 2.27 as print server > * From: "Bryant, Phillip -AES" <PhillipdotBryant at ittdotcom> > * Date: Thu, 23 Oct 2003 12:43:28 -0400 > > I'm running Samba 2.27rather 2.2.7....> on RH8 system.You should be telling us which print subsystem you have installed. CUPS? LPRng? Which version?> I've got samba as the print > spooler for Windows XP clients and using winbind as the user validation > against my Win2K DC. Permissions on the spool directory are root root > with the sticky bit on. Clients can delete their own jobs from the que, > but the spool directory is not being expunged of print jobs and the last > job constantly displays in the client que window. I have not been able > to figure out how to resolve this as occasionally people freak out when > they see older jobs in the print que and wonder if it is stuck. For > whatever reason, the print process is unable to remove the print job > from the spool directory after it is sent to the lpd process for > printing. >You should also be telling us, which smb.conf settings related to printing your Samba daemon is using. Try "testparm -v | egrep '(print|lp|enumport|driv|spool|\[|path)'" and hit "ENTER" twice.... It is well possible that you are using a customized "print command", and have forgotten to include a ";rm %s" at the end.... Cheers, Kurt> > > Phillip M. Bryant > ITT Industries, Advanced Engineering and Sciences > Network Administrator > Albuquerque, NM 87120 > Ph 505-889-7016 > Cell 505-385-8668 > MCSE 2000, NT 4.0 > MCP+I
> [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 %sAs 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/LexmarkThat is not a good way to define the spool path.... "/etc/" is for other things. Better use "/var/spool/samba/"> printable = Yes
>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@danka.de> wrote in message news:3F9BE9F2.5030708@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 >