Hello, I have a pb in using samba with cups. I put "printing=cups" in my smb.conf file but I cannot connect the printers from Windows NT 4.0. Could you send me a smb.conf file using cups as an example ? Thank you
Check out if you have printing support for cups compiled in in samba. My Debian distro installs samba 2.0.7 without cups support! I had to compile my own version. You need at least this: printing = cups printcap name = cups To last options is not documented but you need it! Othwise the printers does not shop up! (At least at my location) I use cups version 1.1.2 which is working for mu (latest version is 1.1.3) Ries
I forgot to tell you this. When you compile Samba make sure you have cups running while creating your configuration file (./configure). Within this process it checks if you have cups running. Otherwise samba will be compiled without cups support. Ries
> Thank you for you help. I have compiled samba which cups support but I > cannot access printers declared into cupd.conf Is it necessary to > declare printers in smb.conf or just into cupd.conf. > > I have just add printing = cups and printcap name = cups ..I forgot to tell you this but did you did ./configure while cups was running? (or did I already post this???) Ok, this is the issue. You need to run cups for samba to configure correctly. If you don't run cups at configure time, samba is not configurated for cups support! You need to check if cups support is there. Raise the debug level to 8 orso and check if your printcap is properly handled. I did see a message when samba was not compiled correctly like 'could not find printcapname cups'. That's basically it. You don't need a /etc/printcap or anything else. samba whil contact cups to see what printers are available. So you don't need to configure anything else then these two options. Ries
Hi, I've just installed samba 2.0.7 and cups 1.1.5 from the suse distrib. I also installed the new HP drivers for the DJ printers. Cups prints fine in my linux box. I also configured samba. The disks shares work ok. I'm having problems with the printer shares. Here are my global and printer configurations: [global] workgroup = workgroup guest account = nobody keep alive = 30 os level = 2 kernel oplocks = false security = user encrypt passwords = yes smb passwd file = /etc/smbpasswd socket options = TCP_NODELAY interfaces = 192.168.0.2/16 wins support = no map to guest = Bad User printing = cups printcap name = cups [printers] comment = All Printers browseable = no printable = yes public = no read only = yes create mode = 0700 directory = /tmp With the above, the printer shares don't show in my win98 box. If I replace 'printcap name = cups' with 'printcap name = /etc/printcap', the printer queues show up in the win98 machine, but when I try to configure them I get a warning saying that the printer is offline. I browsed the mailing list archive, and the suggested solution was to use 'cups' in 'printing' and 'printcap name', but that does not solve my problem. Any suggestions? Thanks. -- Rafael
Sirs, I have a Linunx Mandrake 8.0 box with Samba and CUPS installed. It seems that the SMB/NMB service starts before the CUPS service, so my printers are not served inmediatelly. I must manually stop and start the Samba service in order for it to "see" the printers CUPS is making available. Why is this behavior? How can I correct it? Many thanks, Erick Perez eperez@consultant.com
UNSUBSCRIBE ME PLEASE!!!!!!!!!! -----Mensagem original----- De: Erick Perez - Network Administrator Para: samba@lists.samba.org Enviada em: 16/10/2001 12:13 Assunto: Samba and CUPS Sirs, I have a Linunx Mandrake 8.0 box with Samba and CUPS installed. It seems that the SMB/NMB service starts before the CUPS service, so my printers are not served inmediatelly. I must manually stop and start the Samba service in order for it to "see" the printers CUPS is making available. Why is this behavior? How can I correct it? Many thanks, Erick Perez eperez@consultant.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is CUPS running from a startup script in /etc/init.d? If so, in your /etc/rc.d/rc3.d and /etc/rc.d/rc5.d dirs rename the script so that has a lower number than the smb startup script. For instance, if your cups script is S60cups and samba is S57smb then rename S60cups to S56cups which will make it load first. - -----Original Message----- From: eperez@consultant.com [mailto:eperez@consultant.com] Sent: Tuesday, October 16, 2001 8:18 AM To: samba@lists.samba.org Subject: Samba and CUPS Sirs, I have a Linunx Mandrake 8.0 box with Samba and CUPS installed. It seems that the SMB/NMB service starts before the CUPS service, so my printers are not served inmediatelly. I must manually stop and start the Samba service in order for it to "see" the printers CUPS is making available. Why is this behavior? How can I correct it? Many thanks, Erick Perez eperez@consultant.com - -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -----BEGIN PGP SIGNATURE----- Version: PGP 7.0.1 iQA/AwUBO8xj/MbgHXR4hb1iEQLt3ACeN7GOjDcHXBLcpSGhu6MwH3rRgKYAn0i0 3/JGiakanvpzqBKRDXbkn1Tt =PxdZ -----END PGP SIGNATURE-----
What is the best setup in the [global] settings for cups printing. I know this a really general question but I wanted to start wide and then drill down. One side question is how to get the spool to display correctly from a windows client. Thanks, David R. Fischer
I have Samba version 2.2.7a and CUPS version 1.1.15. I have been unable to successfully use the 'cupsaddsmb' utility. Any time I execute this utility, I get the following error: Warning - No PPD file found for 'printer_name'! The printer is question has been configured in CUPS and it is visible when browsing from a Windows client. Where is it looking for these PPD files? Is it /etc/cups/ppd? Could it be that it does not recognize the PPD files for some reason? Also, could someone further develop Any suggestions are welcome. Thank you. Regards, James Nallen, Systems Progrmmer, NUI Maynooth, Maynooth, Co. Kildare, Ireland.
James Nallen wrote on Samba-Digest:> Date: Mon, 17 Feb 2003 09:23:10 +0000 > From: James Nallen <James.Nallen@may.ie> > To: samba@lists.samba.org > Subject: [Samba] Samba and CUPS > Message-ID: <5.1.0.14.0.20030216144228.00a66318@ailm.may.ie> > Content-Type: text/plain; charset="us-ascii"; format=flowed > MIME-Version: 1.0 > Precedence: list > Message: 20 > > I have Samba version 2.2.7a and CUPS version 1.1.15.Hi, James!> I have been unable to successfully use the 'cupsaddsmb' utility. > Any time I execute this utility, I get the following error: > > Warning - No PPD file found for 'printer_name'!So -- *is* there a PPD associated to the printer-in-question? It should be in "/etc/cups/ppd/printer-in-question.ppd...> The printer is question has been configured in CUPS and it is visible when > browsing from a Windows client. > > Where is it looking for these PPD files? Is it /etc/cups/ppd?Yes. But then, in a second step, cupsaddsmb is retrieving a copy of it (using an IPP call) from there and temporarily storing it in the CUPS spool directory, sub directory "tmp" under a weird name: /var/spool/cups/tmp/3cd1cc66376c0 Do you have a "tmp" in "/var/spool/cups/" (or whatever is dafined to be the CUPS spool dir -- see the "TempDir" directive in cupsd.conf) ? What are the access rights? If cupsaddsmb can't store the PPD in the "TempDir", it could lead to the error message you are seeing... After the PPD is in cupsd's "TempDir", cupsaddsmb makes a smbclient connection to the Samba server's [print$] share to "put" it there (alongside the rest of the needed PostScript driver files). Cheers, Kurt> Could it be > that it does not recognize the PPD files for some reason? > > Also, could someone further develop > > Any suggestions are welcome. Thank you. > > > Regards, > > James Nallen, > Systems Progrmmer, > NUI Maynooth, > Maynooth, > Co. Kildare, > Ireland.
James Nallen wrote on Samba-Digest: > Date: Mon, 17 Feb 2003 09:23:10 +0000 > From: James Nallen <James.Nallen at may.ie> > To: samba at lists.samba.org > Subject: [Samba] Samba and CUPS > Message-ID: <5.1.0.14.0.20030216144228.00a66318 at ailm.may.ie> > Content-Type: text/plain; charset="us-ascii"; format=flowed > MIME-Version: 1.0 > Precedence: list > Message: 20 > > I have Samba version 2.2.7a and CUPS version 1.1.15. Hi, James! - Hi Kurt, - Thanks for your response. > I have been unable to successfully use the 'cupsaddsmb' utility. > Any time I execute this utility, I get the following error: > > Warning - No PPD file found for 'printer_name'! So -- *is* there a PPD associated to the printer-in-question? It should be in "/etc/cups/ppd/printer-in-question.ppd... > The printer is question has been configured in CUPS and it is visible when > browsing from a Windows client. > > Where is it looking for these PPD files? Is it /etc/cups/ppd? Yes. But then, in a second step, cupsaddsmb is retrieving a copy of it (using an IPP call) from there and temporarily storing it in the CUPS spool directory, sub directory "tmp" under a weird name: /var/spool/cups/tmp/3cd1cc66376c0 Do you have a "tmp" in "/var/spool/cups/" (or whatever is dafined to be the CUPS spool dir -- see the "TempDir" directive in cupsd.conf) ? What are the access rights? - I do have a TempDir of "/var/spool/cups/tmp". It's access rights are: - - [root@xxxxx tmp]# pwd - /var/spool/cups/tmp - [root@xxxxx tmp]# ls -al - total 348 - drwx-----T 2 lp sys 4096 Feb 17 18:14 . - drwx------ 3 lp sys 4096 Feb 14 09:33 .. - -The directory "/etc/cups/ppd" contains the following: - - drwxr-xr-x 2 lp sys 4096 Feb 14 09:33 . - drwxr-xr-x 5 lp sys 4096 Feb 14 09:33 .. - -rw-r--r-- 1 lp sys 36606 Feb 14 09:33 ccsys4100.ppd - -rw-r--r-- 1 lp sys 36606 Feb 14 09:23 HP4100.ppd - -rw-r--r-- 1 lp sys 44495 Feb 6 11:10 libsys8500.ppd If cupsaddsmb can't store the PPD in the "TempDir", it could lead to the error message you are seeing... After the PPD is in cupsd's "TempDir", cupsaddsmb makes a smbclient connection to the Samba server's [print$] share to "put" it there (alongside the rest of the needed PostScript driver files). Cheers, Kurt > Could it be > that it does not recognize the PPD files for some reason? > > Also, could someone further develop > > Any suggestions are welcome. Thank you. > > > Regards, > > James Nallen, > Systems Progrmmer, > NUI Maynooth, > Maynooth, > Co. Kildare, > Ireland.
James Nallen wrote on Samba-Digest:> Date: Tue, 18 Feb 2003 11:07:09 +0000 > From: James Nallen <James.Nallen@may.ie> > To: samba@lists.samba.org > Subject: [Samba] RE: Samba and CUPS > Message-ID: <5.0.2.1.1.20030218104309.02cfb670@ailm.may.ie> > Content-Type: text/plain; charset="us-ascii"; format=flowed > MIME-Version: 1.0 > Precedence: list > Message: 4 > > James Nallen wrote on Samba-Digest:Date: Tue, 18 Feb 2003 11:07:09 +0000 > From: James Nallen <James.Nallen@may.ie> > To: samba@lists.samba.org > Subject: [Samba] RE: Samba and CUPS > Message-ID: <5.0.2.1.1.20030218104309.02cfb670@ailm.may.ie> > Content-Type: text/plain; charset="us-ascii"; format=flowed > MIME-Version: 1.0 > Precedence: list > Message: 4 > > James Nallen wrote on Samba-Digest: > > > Date: Mon, 17 Feb 2003 09:23:10 +0000 > > From: James Nallen <James.Nallen at may.ie> > > To: samba at lists.samba.org > > Subject: [Samba] Samba and CUPS > > Message-ID: <5.1.0.14.0.20030216144228.00a66318 at ailm.may.ie> > > Content-Type: text/plain; charset="us-ascii"; format=flowed > > MIME-Version: 1.0 > > Precedence: list > > Message: 20 > > > I have Samba version 2.2.7a and CUPS version 1.1.15. > > Hi, James! > > - Hi Kurt, > > - Thanks for your response. > > > I have been unable to successfully use the 'cupsaddsmb' utility. > > Any time I execute this utility, I get the following error: > > > Warning - No PPD file found for 'printer_name'!What was the exact "cupsaddsmb" you were using? From the "Warning" message quoted I would guess you used "cupsaddsmb -v printer_name" or "cupsaddsmb -v -a" Either you don't have a printer with the name 'printer_name' at all, or this printer (named via the "-a" for "all" paramenter) is a "raw" printer and thusly doesn't have a PPD associated with it.> So -- *is* there a PPD associated to the printer-in-question? It > should be in "/etc/cups/ppd/printer-in-question.ppd... > > > The printer is question has been configured in CUPS and it is visible when > > browsing from a Windows client. > > > Where is it looking for these PPD files? Is it /etc/cups/ppd? > > - Yes. > > But then, in a second step, cupsaddsmb is retrieving a copy of > it (using an IPP call) from there and temporarily storing it in > the CUPS spool directory, sub directory "tmp" under a weird > name: > > /var/spool/cups/tmp/3cd1cc66376c0 > > Do you have a "tmp" in "/var/spool/cups/" (or whatever is > dafined to be the CUPS spool dir -- see the "TempDir" directive > in cupsd.conf) ? What are the access rights? > > - I do have a TempDir of "/var/spool/cups/tmp". It's access rights are: > - > - [root@xxxxx tmp]# pwd > - /var/spool/cups/tmp > - [root@xxxxx tmp]# ls -al > - total 348 > - drwx-----T 2 lp sys 4096 Feb 17 18:14 . > - drwx------ 3 lp sys 4096 Feb 14 09:33 .. > - > - The directory "/etc/cups/ppd" contains the following: > - > - drwxr-xr-x 2 lp sys 4096 Feb 14 09:33 . > - drwxr-xr-x 5 lp sys 4096 Feb 14 09:33 .. > - -rw-r--r-- 1 lp sys 36606 Feb 14 09:33 ccsys4100.ppd > - -rw-r--r-- 1 lp sys 36606 Feb 14 09:23 HP4100.ppd > - -rw-r--r-- 1 lp sys 44495 Feb 6 11:10 libsys8500.ppdOK -- this means that your printer 'printer_name' is a "raw" printer (if it exists at all). What result do you get with "cupsaddsmb -v ccsys4100" ???> If cupsaddsmb can't store the PPD in the "TempDir", it could > lead to the error message you are seeing... > > After the PPD is in cupsd's "TempDir", cupsaddsmb makes a > smbclient connection to the Samba server's [print$] share to > "put" it there (alongside the rest of the needed PostScript > driver files). > > Cheers, > Kurt > > > Could it be > > that it does not recognize the PPD files for some reason? > > > Also, could someone further develop > > > Any suggestions are welcome. Thank you. > > > > Regards, > > > James Nallen, > > Systems Progrmmer, > > NUI Maynooth, > > Maynooth, > > Co. Kildare, > > Ireland.
Marco Horstmann wrote on Samba-Digest:> [Samba] RE: Samba and CUPS > Marco Horstmann m.horstmann at research.paion.de > Tue Feb 18 13:46:11 GMT 2003 > > > >> What was the exact "cupsaddsmb" you were using? From the "Warning" >> message quoted I would guess you used >> >> "cupsaddsmb -v printer_name" >> or >> "cupsaddsmb -v -a" >> > > i didnt follow the whole discussion, so i dunno if he's using samba as a PDC. > in case he uses the PDC functionality, the domain has to be added to the > command: > > cupsaddsmb -U DOMAIN\\root -v PRINTERNAME > > had quite a few problems with my samba/cups config until i found out how to use > the cupsaddsmb utility for a samba PDC...Thanks, Marco, this is indeed a very good general-pupose hint to be kept well in mind. But I don't *think* it is the problem here, since the error message he gets back is: "Warning - No PPD file found for 'printer_name'!". From this I think he had been already successfully authenticated as whatever user he wanted to run the command as.. Cheers, Kurt> best regards, > > Marco > -- > PAION GmbH Forschungszentrum Berlin > Marco Horstmann - IT Systems Administrator > Tegeler Weg 33 - 10589 Berlin, Germany > Tel. +49 30 34358715 - Fax +49 30 34358733 > m.horstmann at research.paion.de - http://www.paion.de
What was the exact "cupsaddsmb" you were using? From the "Warning" message quoted I would guess you used "cupsaddsmb -v printer_name" or "cupsaddsmb -v -a" - I have used both of these commands. I still get the same error. Either you don't have a printer with the name 'printer_name' at all, or this printer (named via the "-a" for "all" paramenter) is a "raw" printer and thusly doesn't have a PPD associated with it. - This printer was configured in CUPS with a foomatic postscript driver. (HP 4100 foomatic + postscript) OK -- this means that your printer 'printer_name' is a "raw" printer (if it exists at all). What result do you get with "cupsaddsmb -v ccsys4100" ??? I get the same error when I try this. "Warning: No PPD file for printer "ccsys4100"!" . Regards, James Nallen, Systems Progrmmer, NUI Maynooth, Maynooth, Co. Kildare, Ireland.
Yes I see that, the CUPS printcap has just the printer sharename in it. Now CUPS does work as far as printing test sheets from the Web Interface, the issue seems to be why samba doesn't recognize it and let me add the printer to the clients. There is always a possibility that Im missing something. In the Win9X clients, when I try to add a printer, it says the share isn't there. Now I don't have a model printer share ([Epson] ect.) in the smb.conf, but from all Vie read, I shouldn't need one, CUPS should take care of all that. Thanks, Kev --- From: Ken Sarkies <matou@picknowl.com.au> Subject: Re: [Samba] Samba and Cups. To: samba@lists.samba.org Message-ID: <1053646721.1926.4.camel@Slinky.168sh> Content-Type: text/plain I understand that CUPS sets up a dummy printcap for the use of applications like samba, and it is best left alone. If printcap was changed, then maybe samba can't understand it. Indeed the fact that printing worked for a bit then stopped could even have been due to the delay between the changes being made and samba refreshing its configuration (which is quite short I think). Ken On Fri, 2003-05-23 at 00:12, Michael MacIsaac wrote:> > > > > > printing = cups > ... > > I used printconf-tui to set the /etc/printcap
Kevin Smith ksmith at perfht.com> Fri May 23 12:01:01 GMT 2003 > > > Yes I see that, the CUPS printcap has just the printer sharename in it. > Now CUPS does work as far as printing test sheets from the Web Interface, > the issue seems to be why samba doesn't recognize itYou need to restart Samba or at least do a "kill -HUP `pidof smbd`" to have newly installed CUPS (and other?) printers recognized by Samba. Note, that this is not the intended behaviour, but a bug in various recent 2.2.x releases as well as the current 3.0alpha24. Intended behaviour is to have it available in "near-realtime".> and let me add the > printer to the clients. There is always a possibility that Im missing > something. > In the Win9X clients, when I try to add a printer, it says the share isn't > there. Now I don't have a model printer share ([Epson] ect.) in the > smb.conf, but from all Vie read, I shouldn't need one, CUPS should take care > of all that.That's right. Re-start smbd or send all smbd processes a HUP and see if this works then.
Cups must be started before smbd or vise versa. Try both.> ------- Ursprungligt meddelande ------- > > Fr?n: Kurt Pfeifle <kpfeifle@danka.de> > ?mne: [Samba] Samba and Cups > Datum: Fri, 23 May 2003 19:54:19 +0200 > >Kevin Smith ksmith at perfht.com > >> Fri May 23 12:01:01 GMT 2003 >> >> >> Yes I see that, the CUPS printcap has just the printer sharename in it. >> Now CUPS does work as far as printing test sheets from the Web Interface, >> the issue seems to be why samba doesn't recognize it > >You need to restart Samba or at least do a > > "kill -HUP `pidof smbd`" > >to have newly installed CUPS (and other?) printers recognized by Samba. > >Note, that this is not the intended behaviour, but a bug in various recent >2.2.x releases as well as the current 3.0alpha24. > >Intended behaviour is to have it available in "near-realtime". > >> and let me add the >> printer to the clients. There is always a possibility that Im missing >> something. >> In the Win9X clients, when I try to add a printer, it says the share isn't >> there. Now I don't have a model printer share ([Epson] ect.) in the >> smb.conf, but from all Vie read, I shouldn't need one, CUPS should take care >> of all that. > >That's right. Re-start smbd or send all smbd processes a HUP and see >if this works then. > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba > >_____________________________________________________________ H?r b?rjar internet! Skaffa gratis e-mail och gratis internet p? http://www.spray.se Hitta r?tt p? internet med Lycos - http://lycos.spray.se
Hi all. I had problem of addition of the printer on a Windows the computer through Samba from CUPS. Problem in that at addition of the printer in CUPS the printer occurs in SAMBA but when I install the printer in WINDOWS and try to print out test page (or something else) that jumps out the message. Completion of the operation or Error of creation of printing is impossible Excuse for my English elje
hi all I have samba v 2.2.8a and cups v1.1.6 This cups have not cupsaddsmb and i try add printer in samba self. When i run command: smbclient //localhost/print\$ -N -U'root%<pswd>' -c 'put /var/spool/cups/3f0be8aa8646b W32X86/printer.ppd' recieve subject: ERRDOS - ERRnoaccess (Access denided.) opening remote file \W32X86/printer.ppd But when i add printer in cups this printer visible in samba, but this printer not print when i try printing in Windows ---------------------------------------------------------------- I try compiled other version CUPS and SAMBA, but SAMBA not compiled with cups. Why?.I don't understand. I install this version cups and SAMBA - Samba compiled with cups OK, but printer not printing. Excuse me for my english -- Regards, elje mailto:ayach-asu@ovu.vorkuta.com