Damien Bonvillain
2003-Jun-29 11:25 UTC
[Samba] rpcclient returns NT_STATUS_NO_SUCH_DEVICE on adddriver
Hi, samba 2.2.8a freshly compiled cups 1.1.19final-1 (debian) while using cupsaddsmb, all runs well until adddriver, when rpcclient returns a cryptic NT_STATUS_NO_SUCH_DEVICE. I've followed the SambaPrintHowto 3.0 from 7.11.6.1 to 7.11.6.6, and it fails on the latest as well. Here is some more information. ===8<==cupsaddsmb -a -v Running command: smbclient //localhost/print\$ -N -U'root%password' -c 'mkdir W32X86;put /var/spool/cups/tmp/3efe4c625dcc2 W32X86/MomijiPrintingSystem.ppd;put /usr/share/cups/drivers/cupsdrvr.dll W32X86/cupsdrvr.dll;put /usr/share/cups/drivers/cupsui.dll W32X86/cupsui.dll;put /usr/share/cups/drivers/cups.hlp W32X86/cups.hlp' added interface ip=192.168.0.6 bcast=192.168.0.255 nmask=255.255.255.0 Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.8a] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/3efe4c625dcc2 as \W32X86/MomijiPrintingSystem.ppd (633.6 kb/s) (average 633.6 kb/s) putting file /usr/share/cups/drivers/cupsdrvr.dll as \W32X86/cupsdrvr.dll (1599.1 kb/s) (average 1350.4 kb/s) putting file /usr/share/cups/drivers/cupsui.dll as \W32X86/cupsui.dll (1786.3 kb/s) (average 1498.6 kb/s) putting file /usr/share/cups/drivers/cups.hlp as \W32X86/cups.hlp (731.6 kb/s) (average 1458.8 kb/s) Running command: rpcclient localhost -N -U'root%password' -c 'adddriver "Windows NT x86" "MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N ULL"' INFO: Debug class all level = 3 (pid 20372 from pid 20372) session setup ok Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.8a] cmd = adddriver "Windows NT x86" "MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N ULL" adddriver "Windows NT x86" "MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N ULL" result was NT_STATUS_NO_SUCH_DEVICE Running command: smbclient //localhost/print\$ -N -U'root%password' -c 'mkdir WIN40;put /var/spool/cups/tmp/3efe4c625dcc2 WIN40/MomijiPrintingSystem.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;' added interface ip=192.168.0.6 bcast=192.168.0.255 nmask=255.255.255.0 Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.8a] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40 putting file /var/spool/cups/tmp/3efe4c625dcc2 as \WIN40/MomijiPrintingSystem.PPD (644.5 kb/s) (average 644.5 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (1813.2 kb/s) (average 1629.0 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (2012.0 kb/s) (average 1870.7 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (1799.0 kb/s) (average 1863.0 kb/s) putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (692.3 kb/s) (average 1843.5 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (1648.0 kb/s) (average 1832.1 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (1435.9 kb/s) (average 1819.7 kb/s) Running command: rpcclient localhost -N -U'root%password' -c 'adddriver "Windows 4.0" "MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC ONLIB.DLL"' INFO: Debug class all level = 3 (pid 20376 from pid 20376) session setup ok Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.8a] cmd = adddriver "Windows 4.0" "MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC ONLIB.DLL" adddriver "Windows 4.0" "MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC ONLIB.DLL" result was NT_STATUS_NO_SUCH_DEVICE Running command: rpcclient localhost -N -U'root%password' -c 'setdriver MomijiPrintingSystem MomijiPrintingSystem' INFO: Debug class all level = 3 (pid 20378 from pid 20378) session setup ok Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.8a] cmd = setdriver MomijiPrintingSystem MomijiPrintingSystem setdriver MomijiPrintingSystem MomijiPrintingSystem SetPrinter call failed! result was NT_STATUS_ACCESS_DENIED ===8<== ===8<==/etc/samba/smb.conf # Global parameters [global] workgroup = NAVI server string = %h server (Samba %v) security = SHARE encrypt passwords = true obey pam restrictions = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . log level = 3 syslog = 3 max log size = 1000 printcap name = cups preferred master = True dns proxy = No panic action = /usr/share/samba/panic-action %d guest account = smbuser hosts allow = 192.168. printing = cups load printers = yes [printers] comment = All Printers path = /var/spool/samba printer admin = root guest ok = yes printable = yes browseable = no public = yes writable = no [print$] comment = Printer Drivers path = /etc/samba/drivers browseable = yes guest ok = no read only = yes write list = root ===8<== I hope somebody can help me, it's been a month I started to try to add this printer :-) Damien
Kurt Pfeifle
2003-Jun-29 15:04 UTC
[Samba] rpcclient returns NT_STATUS_NO_SUCH_DEVICE on adddriver
Damien Bonvillain kame at cinemasie.com> Sun Jun 29 13:25:51 GMT 2003 > > > Hi, > samba 2.2.8a freshly compiled > cups 1.1.19final-1 (debian) > > while using cupsaddsmb, all runs well until adddriver, when rpcclient > returns a cryptic NT_STATUS_NO_SUCH_DEVICE. I've followed the > SambaPrintHowto 3.0 from 7.11.6.1 to 7.11.6.6,Read 8.5 too... Also, 7.11.6 is describing the pure commandline installation of the driver files using smbclient and rpcclient. Your quotes below show your usage of "cupsaddsmb", which is discussed in 7.10.x....> and it fails on the > latest as well. > > Here is some more information. > > ===8<==> cupsaddsmb -a -v[....]> > Running command: rpcclient localhost -N -U'root%password' -c 'adddriver "Windows NT x86" > "MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N > ULL"' > INFO: Debug class all level = 3 (pid 20372 from pid 20372) > session setup ok > Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.8a] > cmd = adddriver "Windows NT x86" > "MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N > ULL" > adddriver "Windows NT x86" > "MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N > ULL" > result was NT_STATUS_NO_SUCH_DEVICE >This one is your main problem, part 1. [....]> > Running command: rpcclient localhost -N -U'root%password' -c 'adddriver "Windows 4.0" > "MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA > W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC > ONLIB.DLL"' > INFO: Debug class all level = 3 (pid 20376 from pid 20376) > session setup ok > Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.8a] > cmd = adddriver "Windows 4.0" > "MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA > W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC > ONLIB.DLL" > adddriver "Windows 4.0" > "MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA > W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC > ONLIB.DLL" > result was NT_STATUS_NO_SUCH_DEVICE >This one is your main problem, part 2.> Running command: rpcclient localhost -N -U'root%password' -c 'setdriver > MomijiPrintingSystem MomijiPrintingSystem' > INFO: Debug class all level = 3 (pid 20378 from pid 20378) > session setup ok > Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.8a] > cmd = setdriver MomijiPrintingSystem MomijiPrintingSystem > setdriver MomijiPrintingSystem MomijiPrintingSystem > SetPrinter call failed! > result was NT_STATUS_ACCESS_DENIEDThis one is most likely caused by the previous error.> ===8<==> > ===8<==> /etc/samba/smb.conf > # Global parameters > [global] > workgroup = NAVI > server string = %h server (Samba %v) > security = SHARETry "security = user"... [....]> > ===8<==> > I hope somebody can help me, it's been a month I started to try to add this printer :-) >Your log level of 3 should be sufficient to uncover the problem. Scan the Samba log (probably in "/var/log/samba/log.smbd") for *all* messages occuring during you run cupsaddsmb. You might discover an "access denied" or a similar problem> Damien >
Damien Bonvillain
2003-Jun-30 00:09 UTC
[Samba] rpcclient returns NT_STATUS_NO_SUCH_DEVICE on adddriver
Note: I reply before having received Kurt's answer by mail, thus this mail doesn't have the right headers Kurt Pfeifle wrote> Read 8.5 too...I did but I did not find anything helping me in this case. I should have mentionned it.> Also, 7.11.6 is describing the pure commandline installation of > the driver files using smbclient and rpcclient. Your quotes below > show your usage of "cupsaddsmb", which is discussed in 7.10.x...Yes. It failed with cupsaddsmb, so I did the process step by step with the verifications in order to give a more precise status.> Try "security = user"...Ok, now adddriver works with a successful status, but the driver doesn't show up in "enumdrivers 3". The files are present in 0 and 2, and Windows recognize them as driver files if I go to the "Properties" of the Printers folder. In log.smbd, there are no error neither for adddriver nor for enumdrivers as far as I can tell. It's rather strange. Of course after that, setdriver fails with NT_STATUS_ACCESS_DENIED and this in log.smbd [2003/06/30 02:06:42, 3] rpc_server/srv_pipe.c:api_rpcTNP(1197) api_rpcTNP: pipe 29776 rpc command: SPOOLSS_SETPRINTER [2003/06/30 02:06:42, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(607) spoolss_io_devmode: Unknown specversion in devicemode [0x0] [2003/06/30 02:06:42, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(608) spoolss_io_devmode: please report to samba-technical@samba.org! [2003/06/30 02:06:42, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(704) spoolss_io_devmode: I've parsed all I know and there is still stuff left| [2003/06/30 02:06:42, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(706) spoolss_io_devmode: available_space = [-220], devmode_size = [0]! [2003/06/30 02:06:42, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(707) spoolss_io_devmode: please report to samba-technical@samba.org! [2003/06/30 02:06:42, 0] rpc_server/srv_spoolss.c:api_spoolss_setprinter(600) spoolss_io_q_setprinter: unable to unmarshall SPOOL_Q_SETPRINTER. [2003/06/30 02:06:42, 0] rpc_server/srv_pipe.c:api_rpcTNP(1217) api_rpcTNP: api_spoolss_rpc: SPOOLSS_SETPRINTER failed. Damien
Seemingly Similar Threads
- cupsaddsmb claims to work but fails
- using cupsaddsmb with W98
- cli_pipe: return critical error. Error was Call returned zero byte (EOF), hilfe!
- downloading printer drivers from W98 client
- rpcclient error -- CUPS 1.1.16 provides PostScript driver for WindowsNT/2K/XP