Re: [Samba] Cups and Samba Access Denied
On Wed, 2003-12-31 at 14:12, John H Terpstra wrote: Jared, I feel with you. I am the author of the book. :) Hi John, I have been suffering from this problem also. Your response below has helped quite a bit. By using the use client driver = yes, I was able to at least create and talk to the printer from Windows/XP. However, this printer is a bit of a stink. I can't install the drivers locally (on Windows) unless I have the printer connected and that's not really possible (it's in use on my Linux box). So, I'd like to use the Linux drivers, as set up by 'cupsaddsmb', but Windows always complains that the host (Linux/Samba) does not have the correct drivers installed. ... catch-22 :-( On Wed, 31 Dec 2003 [EMAIL PROTECTED] wrote: I purchased the Samba 3.0 book and it has gotten me pretty far but I finally had to go to the mailing list for this problem. Here is the issue, I am running Debian (woody) with samba 3.0.1-2 and cupsys 1.1.14-5 I have also installed cupsys-bsd cupsys-client and smbclient I recommend that you update to CUPS 1.1.18 or later and make sure that your Samba-3.0.1 is linked specifically with its libraries. That will help resolve some of your issues. Can you elaborate? I'm running CUPS-1.1.17 (from my Red Hat 9 distribution) and Samba-3.0.1 (from samba.org) foomatic-bin and as2ps follwing this http://excess.org/docs/linux_windows_printing.html advice. Samba is running in Domain mode and I can log on to the network and connect to file shares just fine. Here is the issue: My printer will show up if in my xp box if I browse the entire network, but if I double click it or right click on it, I get Operation could not be completed. access denied. I have managed to connect to this printer by adding a local printer in XP and choosing the create port option. But if I choose network option it asks me for a user name and password and I get access denied. I have raw printing running and when I create the port it seems to be working fine but for some reason I cannot instlal it like a network printer on a NT box. Here the parts of my smb.conf file: ### 1.4 - Printing ### printing = cups printcap name = cups load printers = yes # If you want to automatically load your printer list rather # than setting them up individually then you'll need this. show add printer wizard = yes [printers] comment = All Printers browseable = yes path = /home/spooler printable = yes public = yes writable = no guest ok = no printer admin = jared, @IT create mode = 0700 use client driver = yes print command = lpr -r -oraw -P%p %s Given that you are using CUPS the print command will not be issued since Samba will print direct via he cups libraries. By specifying use client driver you prevent the upload of the driver files. Here is my printing section, as it is on my network: [printers] comment = All Printers path = /var/spool/samba printer admin = root, jht create mask = 0600 guest ok = Yes printable = Yes use client driver = Yes default devmode = Yes browseable = No For this system I do not want to upload drivers. The permissions on the /var/spool/samba directory are: 1755. Also, did you make sure that you uncommented the lines in the /etc/mime.* files that have? application/octet-stream ... That will permit CUPS to print fully pre-processed jobs that your client driver file prepared to go directly to the printer. [print$] # Some Windows clients will look for this share to hold # printer drivers. comment = Printer Drivers path = /home/drivers browseable = yes read only = yes guest ok = yes read only = yes write list = jared, @administrators I log in as jared for testing purposes. I have the print$ share up with all the proper directories but I do not have any drivers installed, this is becuase when I try to do it through XP I get Operation could not be completed. access denied. The use client driver kind of defeats having this share. :) Cheers, John T. -- John H Terpstra Email: [EMAIL PROTECTED] -- Gary Thomas [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Cups and Samba Access Denied
On Wed, 2003-12-31 at 15:15, John H Terpstra wrote: On Wed, 31 Dec 2003, Gary Thomas wrote: On Wed, 2003-12-31 at 14:12, John H Terpstra wrote: Jared, I feel with you. I am the author of the book. :) Hi John, I have been suffering from this problem also. Your response below has helped quite a bit. By using the use client driver = yes, I was able to at least create and talk to the printer from Windows/XP. However, this printer is a bit of a stink. I can't install the drivers locally (on Windows) unless I have the printer connected and that's not really possible (it's in use on my Linux box). So, I'd like to use the Linux drivers, as set up by 'cupsaddsmb', but Windows always complains that the host (Linux/Samba) does not have the correct drivers installed. ... catch-22 :-( That's one way to do it. The other is to use an alternative driver that does not require the printer to be attached. For example, my HP PhotoSmart P1000 requires the printer to be attached all the time. I got sick of the and now use the HP DeskJet 940C driver with perfect results. Any idea how I can determine what driver is compatible? I'm using an HP 6110 all-in-one (printer/scanner/fax). I have asked HP if it's possible to get/install the drivers without the unit physically attached, but no response so far. n.b. it works great on my Linux box, using the CUPS/hpij drivers :-) -- Gary Thomas [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Unknown printer driver
I'm still struggling with trying to get a new printer working. When I try to configure it, I get errors [EMAIL PROTECTED] samba]# rpcclient localhost -Uroot% -c 'enumdrivers' [Windows 4.0] Printer Driver Info 1: Driver Name: [hp_lp] [Windows NT x86] Printer Driver Info 1: Driver Name: [hp_lp] [EMAIL PROTECTED] samba]# rpcclient localhost -Uroot% -c 'getdriver hp_lp' [Windows NT x86] Printer Driver Info 3: Version: [2] Driver Name: [hp_lp] Architecture: [Windows NT x86] Driver Path: [\\hermes\print$\W32X86\2\ADOBEPS5.DLL] Datafile: [\\hermes\print$\W32X86\2\hp_lp.PPD] Configfile: [\\hermes\print$\W32X86\2\ADOBEPSU.DLL] Helpfile: [\\hermes\print$\W32X86\2\ADOBEPSU.HLP] Monitorname: [] Defaultdatatype: [RAW] result was WERR_UNKNOWN_PRINTER_DRIVER Also, when I try to add the printer from my Windows/XP box, I get an error saying that the appropriate driver is not installed. Anybody have any ideas? -- Gary Thomas [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Printer problems
I'm trying to work with a CUPS printer and make it visible via SAMBA. I've been following the cookbook (from the CUPS site), but it just doesn't work. This is based on SAMBA-3.0.0 (beta from RedHat) Here's the output of the 'cupsaddsmb' command which is just a automated mechanism for adding the printer, drivers, etc. [EMAIL PROTECTED] SPECS]# cupsaddsmb -v -U root -a Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%xxx' -c 'mkdir W32X86;put /var/spool/cups/tmp/3fe8b6e353392 W32X86/hp_lp.PPD;put /usr/share/cups/drivers/ADOBEPS5.DLL W32X86/ADOBEPS5.DLL;put /usr/share/cups/drivers/ADOBEPSU.DLL W32X86/ADOBEPSU.DLL;put /usr/share/cups/drivers/ADOBEPSU.HLP W32X86/ADOBEPSU.HLP' OS=[Unix] Server=[Samba 3.0.0beta3] putting file /var/spool/cups/tmp/3fe8b6e353392 as \W32X86/hp_lp.PPD (19141.7 kb/s) (average 19143.6 kb/s) putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (12767.8 kb/s) (average 12945.0 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (6625.0 kb/s) (average 10687.8 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (9008.8 kb/s) (average 10630.0 kb/s) Running command: rpcclient localhost -N -U'root%xxx' -c 'adddriver Windows NT x86 hp_lp:ADOBEPS5.DLL:hp_lp.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL' Printer Driver hp_lp successfully installed. Running command: smbclient //localhost/print\$ -N -U'root%xxx' -c 'mkdir WIN40;put /var/spool/cups/tmp/3fe8b6e353392 WIN40/hp_lp.PPD;put /usr/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put /usr/share/cups/drivers/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV;put /usr/share/cups/drivers/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP;put /usr/share/cups/drivers/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD;put /usr/share/cups/drivers/ICONLIB.DLL WIN40/ICONLIB.DLL;put /usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;' OS=[Unix] Server=[Samba 3.0.0beta3] putting file /var/spool/cups/tmp/3fe8b6e353392 as \WIN40/hp_lp.PPD (19141.7 kb/s) (average 19143.6 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (8782.5 kb/s) (average 8941.9 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (18078.1 kb/s) (average 13679.2 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (21317.0 kb/s) (average 14156.6 kb/s) putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (3293.9 kb/s) (average 13863.0 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (16479.7 kb/s) (average 13981.2 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (4000.0 kb/s) (average 13154.4 kb/s) Running command: rpcclient localhost -N -U'root%xxx' -c 'adddriver Windows 4.0 hp_lp:ADOBEPS4.DRV:hp_lp.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV:hp_lp.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL' Printer Driver hp_lp successfully installed. Running command: rpcclient localhost -N -U'root%xxx' -c 'setdriver hp_lp hp_lp' result was WERR_INVALID_PRINTER_NAME Password for root required to access localhost via SAMBA: Running command: rpcclient localhost -N -U'root%' -c 'setdriver hp_lp hp_lp' result was WERR_INVALID_PRINTER_NAME ERROR: Unable to install Windows printer driver files (256)! Note: I've been trying to get this working for quite a while now and would really appreciate any help I can get. Thanks. -- Gary Thomas [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] No joy adding a CUPS printer
) (average 44226.2 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (55994.5 kb/s) (average 44461.7 kb/s) Running command: rpcclient localhost -N -U'root%' -c 'adddriver Windows 4.0 lp:ADOBEPS4.DRV:lp.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV:lp.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL' cmd = adddriver Windows 4.0 lp:ADOBEPS4.DRV:lp.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV:lp.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL Printer Driver lp successfully installed. Running command: rpcclient localhost -N -U'root%' -c 'setdriver lp lp' cmd = setdriver lp lp Succesfully set lp to driver lp. Now, testing that things went well (the above indicates it did): [root samba]# rpcclient localhost -Uroot% -c 'enumprinters' cmd = enumprinters flags:[0x80] name:[\\localhost\lp] description:[\\localhost\lp,lp,HP OfficeJet 6110 Foomatic/hpijs (recommended)] comment:[HP OfficeJet 6110 Foomatic/hpijs (recommended)] [root samba]# rpcclient localhost -Uroot% -c 'getprinter lp 2' cmd = getprinter lp 2 servername:[\\localhost] printername:[\\localhost\lp] sharename:[lp] portname:[Samba Printer Port] drivername:[lp] comment:[HP OfficeJet 6110 Foomatic/hpijs (recommended)] location:[] sepfile:[] printprocessor:[winprint] datatype:[RAW] parameters:[] attributes:[0x18] priority:[0x1] defaultpriority:[0x1] starttime:[0x0] untiltime:[0x0] status:[0x0] cjobs:[0x0] averageppm:[0x0] [root samba]# rpcclient localhost -Uroot% -c 'getdriver lp' cmd = getdriver lp Error opening printer handle for lp! result was NT_STATUS_UNSUCCESSFUL Alas, I'm stuck :-( Windows (XP Home if it matters) stalls trying to install this printer, telling me I don't have the proper drivers installed. Most likely because of the 'getdriver' issue above. I'm running Samba 2.2.7a-7.9.0 - stock from Red Hat 9.0 Any ideas or help would be appreciated. My wife really wants her printer back :-) Thanks -- Gary Thomas [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba