Hi, i try to set up a samba print server with cups, but when i use the cupsaddprinter command, all copy start & stop with no problem, and when the rppcclient command is launch to add the printer driver, it fails and show me this error: # cupsaddsmb -v -U root -a [...many lines...] result was WERR_INVALID_PRINTER_NAME I try to find somthing on the net and other ML & i find this to list the samba available printers: # rpcclient -U'root' -c enumprinters localhost Password: No printers returned. Why samba don't see my configured cups printer? For information, i use fedora core 5, samba 3.0.23, Cups 1.2.3. You will find under my smb.conf & complete logfile of the cupsaddsmb/rpcclient. I hope that someone could help me! Best regards, Guillaume ###########SMB.CONF############## global] workgroup = VIRTUALPC server string log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap dns proxy = No ldap ssl = no cups options = raw [homes] comment = Home Directories admin users = %U read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printer admin = root guest ok = Yes printable = Yes browseable = No [print$] comment = Printer Drivers path = /etc/samba/drivers write list = root #######################LOGFILE####################### Running command: smbclient //valinor/print$ -N -A /var/spool/cups/tmp/45092a7ec40d5 -c 'mkdir W32X86;put /var/spool/cups/tmp/45092a7536ef0 W32X86/HP_LaserJet_4100_Series_172.16.11.21.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll' Domain=[VALINOR] OS=[Unix] Server=[Samba 3.0.23a-1.fc5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/45092a7536ef0 as \W32X86/HP_LaserJet_4100_Series_172.16.11.21.ppd (13063,6 kb/s) (average 13064,0 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (18785,5 kb/s) (average 16705,1 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (13066,3 kb/s) (average 16145,4 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (21501,8 kb/s) (average 20080,7 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (21595,1 kb/s) (average 20535,1 kb/s) Running command: smbclient //valinor/print$ -N -A /var/spool/cups/tmp/45092a7ec40d5 -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll' Domain=[VALINOR] OS=[Unix] Server=[Samba 3.0.23a-1.fc5.1] putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (35,2 kb/s) (average 35,2 kb/s) putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (6136,4 kb/s) (average 3085,9 kb/s) putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (6675,5 kb/s) (average 4282,6 kb/s) Running command: rpcclient valinor -N -A /var/spool/cups/tmp/45092a7ec40d5 -c 'adddriver "Windows NT x86" "HP_LaserJet_4100_Series_172.16.11.21:pscript5.dll:HP_LaserJet_4100_Series_172.16.11.21.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,HP_LaserJet_4100_Series_172.16.11.21.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"' Printer Driver HP_LaserJet_4100_Series_172.16.11.21 successfully installed. Running command: rpcclient valinor -N -A /var/spool/cups/tmp/45092a7ec40d5 -c 'setdriver HP_LaserJet_4100_Series_172.16.11.21 HP_LaserJet_4100_Series_172.16.11.21' result was WERR_INVALID_PRINTER_NAME
Please run testparm -v What are the setting at load printers? Is it yes What is printing ? Is it cups? What is happening with swat, are you able to choose a printer at printing? regards Franz
Franz Pfoertsch wrote:> Please run testparm -v > > What are the setting at > > load printers? Is it yes > > What is printing ? Is it cups? > > What is happening with swat, are you able to choose a printer at printing? > > regards > Franz > > >What does smbclient -L localhost telling you? any printershares visible? regards Franz
> load printers? Is it yes >load printers = Yes > What is printing ? Is it cups? >printing = cups > What is happening with swat, are you able to choose a printer at printing? >I dont understand what you ask for, but in swat i was able in theprinter section to choose the "share" named printer (seen in the smb.conf as [printer]).> What does smbclient -L localhost telling you? > > any printershares visible?no printer share visible except print$ here is the dump: Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers IPC$ IPC IPC Service () root Disk Home Directories Domain=[VALINOR] OS=[Unix] Server=[Samba 3.0.23a-1.fc5.1] Server Comment --------- ------- Workgroup Master --------- ------- VIRTUALPC Thanks for your help! Guillaume
And how many printer you have? lpstat -a ... regards Franz Guillaume wrote:>> load printers? Is it yes >>load printers = Yes >> What is printing ? Is it cups? >>printing = cups >> What is happening with swat, are you able to choose a printer at >> printing? >>I dont understand what you ask for, but in swat i was able in the > printer section to choose the "share" named printer (seen in the > smb.conf as [printer]). > >> What does smbclient -L localhost telling you? >> >> any printershares visible? > > no printer share visible except print$ > here is the dump: > Sharename Type Comment > --------- ---- ------- > print$ Disk Printer Drivers > IPC$ IPC IPC Service () > root Disk Home Directories > Domain=[VALINOR] OS=[Unix] Server=[Samba 3.0.23a-1.fc5.1] > > Server Comment > --------- ------- > > Workgroup Master > --------- ------- > VIRTUALPC > > Thanks for your help! > Guillaume
> And how many printer you have? > > lpstat -a ...Only one! :) # lpstat -a HP_LaserJet_4100_Series_172.16.11.21 accepting requests since jeu 14 sep 2006 11:46:21 CEST In other way, i check the security of the folders specified in the share section ([print$] & [printers]) its root - root rwxrwxr-x for the files & folders. Guillaume
Franz Pfoertsch
2006-Sep-14 14:52 UTC
[Samba] Re: Re: Re: rppclient problem with cupsaddsmb
a long as you have no printer share printing from samba is not possible. the samba share has the same name as the printer queue or you have to create a printershare with different name using the swat ... Is it possible that your samba is broken? where does the rpm come from? regards Franz Guillaume wrote:>> And how many printer you have? >> >> lpstat -a ... > Only one! :) > # lpstat -a > HP_LaserJet_4100_Series_172.16.11.21 accepting requests since jeu 14 > sep 2006 11:46:21 CEST > > In other way, i check the security of the folders specified in the > share section ([print$] & [printers]) its root - root rwxrwxr-x for > the files & folders. > > > Guillaume
Seemingly Similar Threads
- cups automatic driver install (WERR_ACCESS_DENIED)
- add x64 printer drivers with cupsaddsmb fail
- cupsaddsmb not working after upgrade to Lenny (rpcclient -> WERR_INVALID_PARAM)
- Got cupsaddsmb working but the client PC download of the printer drivers fails for 3 out 4 PCs tested so far!
- Problem running rpc add driver