Re: [Samba] cupsaddsmb error: cli_pipe_validate_cur rent_pdu: RPC fault code DCERPC_FAULT_OP_RNG _ERROR received
Am Friday 19 March 2010 15:39:58 schrieb Richard Lamboj: Hello, when i send the SIGHUP signal to Samba, then Samba won't load the printers from CUPS. I need to shutdown Samba and start it again. Now when i'am running cupsaddsmb i got the following errors(this error occours in 3.5.x but not in 3.2.x): server-p:/# cupsaddsmb -H server-p -v edv01 edv02 edv03 Kennwort für root erforderlich, um über SAMBA auf server-p zugreifen zu können: Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b6546c6f -c „mkdir W32X86;put /tmp/4ba38b6126eb3 W32X86/edv01.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b6126eb3 as \W32X86/edv01.ppd (2216,4 kb/s) (average 2216,4 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 12545,9 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (510,9 kb/s) (average 3075,8 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (41426,1 kb/s) (average 14224,2 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 19230,4 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6546c6f -c „adddriver Windows NT x86 edv01:pscript5.dll:edv01.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,e dv01.ppd,ps5ui.dll,pscript.hlp,pscript.ntf“ Printer Driver edv01 successfully installed. Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6546c6f -c „setdriver edv01 edv01“ cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Successfully set edv01 to driver edv01. cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b6611474 -c „mkdir W32X86;put /tmp/4ba38b6611328 W32X86/edv02.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b6611328 as \W32X86/edv02.ppd (27235,0 kb/s) (average inf kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 163096,7 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (437,9 kb/s) (average 3291,6 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (30460,4 kb/s) (average 13442,6 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 18196,5 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6611474 -c „adddriver Windows NT x86 edv02:pscript5.dll:edv02.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,e dv02.ppd,ps5ui.dll,pscript.hlp,pscript.ntf“ Printer Driver edv02 successfully installed. Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6611474 -c „setdriver edv02 edv02“ cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Successfully set edv02 to driver edv02. cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b66759ee -c „mkdir W32X86;put /tmp/4ba38b667589a W32X86/edv03.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b667589a as \W32X86/edv03.ppd (27235,0 kb/s) (average inf kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 163096,7 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (252,8 kb/s) (average 1914,5 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (30460,4 kb/s) (average 9267,3 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 12628,9 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b66759ee -c „adddriver Windows NT x86 edv03:pscript5.dll:edv03.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,e dv03.ppd,ps5ui.dll,pscript.hlp,pscript.ntf“ Printer Driver edv03 successfully installed. Befehl
Re: [Samba] cupsaddsmb error: cli_pipe_validate_cur rent_pdu: RPC fault code DCERPC_FAULT_OP_RNG _ERROR received
Am Monday 22 March 2010 09:59:15 schrieb Richard Lamboj: Am Friday 19 March 2010 15:39:58 schrieb Richard Lamboj: Hello, when i send the SIGHUP signal to Samba, then Samba won't load the printers from CUPS. I need to shutdown Samba and start it again. Now when i'am running cupsaddsmb i got the following errors(this error occours in 3.5.x but not in 3.2.x): server-p:/# cupsaddsmb -H server-p -v edv01 edv02 edv03 Kennwort für root erforderlich, um über SAMBA auf server-p zugreifen zu können: Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b6546c6f -c „mkdir W32X86;put /tmp/4ba38b6126eb3 W32X86/edv01.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b6126eb3 as \W32X86/edv01.ppd (2216,4 kb/s) (average 2216,4 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 12545,9 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (510,9 kb/s) (average 3075,8 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (41426,1 kb/s) (average 14224,2 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 19230,4 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6546c6f -c „adddriver Windows NT x86 edv01:pscript5.dll:edv01.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll ,e dv01.ppd,ps5ui.dll,pscript.hlp,pscript.ntf“ Printer Driver edv01 successfully installed. Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6546c6f -c „setdriver edv01 edv01“ cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Successfully set edv01 to driver edv01. cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b6611474 -c „mkdir W32X86;put /tmp/4ba38b6611328 W32X86/edv02.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b6611328 as \W32X86/edv02.ppd (27235,0 kb/s) (average inf kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 163096,7 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (437,9 kb/s) (average 3291,6 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (30460,4 kb/s) (average 13442,6 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 18196,5 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6611474 -c „adddriver Windows NT x86 edv02:pscript5.dll:edv02.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll ,e dv02.ppd,ps5ui.dll,pscript.hlp,pscript.ntf“ Printer Driver edv02 successfully installed. Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6611474 -c „setdriver edv02 edv02“ cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Successfully set edv02 to driver edv02. cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b66759ee -c „mkdir W32X86;put /tmp/4ba38b667589a W32X86/edv03.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b667589a as \W32X86/edv03.ppd (27235,0 kb/s) (average inf kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 163096,7 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (252,8 kb/s) (average 1914,5 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (30460,4 kb/s) (average 9267,3 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 12628,9 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b66759ee -c „adddriver Windows NT x86
Re: [Samba] cupsaddsmb error: cli_pipe_validate_current_pdu: RPC fault code?DCERPC_FAULT_OP_RNG_ERROR received
Hi Richard, On Mon, Mar 22, 2010 at 11:20:48AM +0100, Richard Lamboj wrote: Well i mean: it works with Samba 3.2.14 but _not_ with Samba 3.5.x. can you please file a bug at https://bugzilla.samba.org about this ? Thanks, Guenther -- Günther DeschnerGPG-ID: 8EE11688 Red Hat gdesch...@redhat.com Samba Team g...@samba.org pgpgDhWpihyWc.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] cupsaddsmb error: cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received
Hello, when i send the SIGHUP signal to Samba, then Samba won't load the printers from CUPS. I need to shutdown Samba and start it again. Now when i'am running cupsaddsmb i got the following errors(this error occours in 3.5.x but not in 3.2.x): server-p:/# cupsaddsmb -H server-p -v edv01 edv02 edv03 Kennwort für root erforderlich, um über SAMBA auf server-p zugreifen zu können: Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b6546c6f -c „mkdir W32X86;put /tmp/4ba38b6126eb3 W32X86/edv01.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b6126eb3 as \W32X86/edv01.ppd (2216,4 kb/s) (average 2216,4 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 12545,9 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (510,9 kb/s) (average 3075,8 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (41426,1 kb/s) (average 14224,2 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 19230,4 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6546c6f -c „adddriver Windows NT x86 edv01:pscript5.dll:edv01.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,edv01.ppd,ps5ui.dll,pscript.hlp,pscript.ntf“ Printer Driver edv01 successfully installed. Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6546c6f -c „setdriver edv01 edv01“ cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Successfully set edv01 to driver edv01. cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b6611474 -c „mkdir W32X86;put /tmp/4ba38b6611328 W32X86/edv02.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b6611328 as \W32X86/edv02.ppd (27235,0 kb/s) (average inf kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 163096,7 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (437,9 kb/s) (average 3291,6 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (30460,4 kb/s) (average 13442,6 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 18196,5 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6611474 -c „adddriver Windows NT x86 edv02:pscript5.dll:edv02.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,edv02.ppd,ps5ui.dll,pscript.hlp,pscript.ntf“ Printer Driver edv02 successfully installed. Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b6611474 -c „setdriver edv02 edv02“ cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Successfully set edv02 to driver edv02. cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host server-p! Befehl ausführen: smbclient //server-p/print$ -N -A /tmp/4ba38b66759ee -c „mkdir W32X86;put /tmp/4ba38b667589a W32X86/edv03.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=[PRUEFUNG] OS=[Unix] Server=[Samba 3.5.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4ba38b667589a as \W32X86/edv03.ppd (27235,0 kb/s) (average inf kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (136486,7 kb/s) (average 163096,7 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (252,8 kb/s) (average 1914,5 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (30460,4 kb/s) (average 9267,3 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (234488,6 kb/s) (average 12628,9 kb/s) Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b66759ee -c „adddriver Windows NT x86 edv03:pscript5.dll:edv03.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,edv03.ppd,ps5ui.dll,pscript.hlp,pscript.ntf“ Printer Driver edv03 successfully installed. Befehl ausführen: rpcclient server-p -N -A /tmp/4ba38b66759ee -c „setdriver edv03 edv03“
[Samba] cupsaddsmb question
Hi, I had a working Samba PDC server (v3.2.5) with CUPS printer server and automatic Windows driver installation. But I had to add Windows 7 clients to the server so I updated the Samba from Lenny-Backports to 3.4.7. Everything seems to be OK, but when I run cupsaddsmb it does not add the drivers to the server. Everything is fine but at the last step (rpcclient setdriver x y) it fails. The error is WERR_INVALID_PARAM What should I do to make cupsaddsmb work again? Attia Mesterhazy -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cupsaddsmb question
I have found the problem. The printer name had a - in it, and that caused the problem. I made the same printer with the same settings under cups but now without the - sign and voi la everything works fine. Attila Mesterhazy Hi, I had a working Samba PDC server (v3.2.5) with CUPS printer server and automatic Windows driver installation. But I had to add Windows 7 clients to the server so I updated the Samba from Lenny-Backports to 3.4.7. Everything seems to be OK, but when I run cupsaddsmb it does not add the drivers to the server. Everything is fine but at the last step (rpcclient setdriver x y) it fails. The error is WERR_INVALID_PARAM What should I do to make cupsaddsmb work again? Attia Mesterhazy -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] cupsaddsmb not working after upgrade to Lenny (rpcclient - WERR_INVALID_PARAM)
Dear list, I've upgraded my server from Etch to Lenny and now the printer (HP LaserJet 6P) does not work any more through Samba. Printing a testpage via http://server:631 works perfectly so I skip giving details about the CUPS setup. Also lpstat reports the printer working # lpstat -a HP_LaserJet_6P accepting requests I tried to rerun cupsaddsmb. The driver files are copied to the print$-share (I can see them in /etc/samba/drivers) and also the first RPC call 'adddriver' is reported successful. The second one 'setdriver' ends with 'WERR_INVALID_PARAM', see output: --- running cupsaddsmb -- # cupsaddsmb -U root -v HP_LaserJet_6P Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print$ -N -A /tmp/4a9044c32f4f2 -c 'mkdir W32X86;put /tmp/4a9044c01fd93 W32X86/HP_LaserJet_6P.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=[PRIMEC] OS=[Unix] Server=[Samba 3.2.5] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/4a9044c01fd93 as \W32X86/HP_LaserJet_6P.ppd (4076.0 kb/s) (average 4076.0 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (7569.1 kb/s) (average 7327.1 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (8174.5 kb/s) (average 7351.5 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (15230.7 kb/s) (average 10466.6 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (15157.1 kb/s) (average 11259.7 kb/s) Running command: smbclient //localhost/print$ -N -A /tmp/4a9044c32f4f2 -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=[PRIMEC] OS=[Unix] Server=[Samba 3.2.5] putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (17.6 kb/s) (average 17.6 kb/s) putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (6136.4 kb/s) (average 2057.3 kb/s) putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (6675.5 kb/s) (average 3211.9 kb/s) Running command: rpcclient localhost -N -A /tmp/4a9044c32f4f2 -c 'adddriver Windows NT x86 HP_LaserJet_6P:pscript5.dll:HP_LaserJet_6P.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,HP_LaserJet_6P.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll' Printer Driver HP_LaserJet_6P successfully installed. Running command: rpcclient localhost -N -A /tmp/4a9044c32f4f2 -c 'setdriver HP_LaserJet_6P HP_LaserJet_6P' result was WERR_INVALID_PARAM Unable to set Windows printer driver (1)! -- end --- Running the rpcclient command manually with debugging gives: rpcclient manually # rpcclient localhost -c 'setdriver HP_LaserJet_6P HP_LaserJet_6P; debuglevel 10' Password: result was WERR_INVALID_PARAM debuglevel is 10 write_socket(4,45) write_socket(4,45) wrote 45 got smb length of 35 size=35 smb_com=0x4 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=1 smb_pid=13383 smb_uid=100 smb_mid=14 smt_wct=0 smb_bcc=0 cli_rpc_pipe_close: closed pipe \spoolss to machine localhost write_socket(4,39) write_socket(4,39) wrote 39 got smb length of 35 size=35 smb_com=0x71 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=1 smb_pid=13383 smb_uid=100 smb_mid=15 smt_wct=0 smb_bcc=0 end -- That does tell me absolutely nothing :) Any idea? Thanks, Ralph -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cupsaddsmb not working after upgrade to Lenny (rpcclient - WERR_INVALID_PARAM)
Another thing I found out: When calling the 'setdriver' command with rpcclient the syntax is setclient printer driver I guess that means to assign a driver to a printer. I furthermore read in Google that samba should find CUPS printers automatically, at least after a restart. Nevertheless, 'enumprinters' does not return any printers: # rpcclient localhost Password: rpcclient $ enumprinters No printers returned. Ralph Kutschera schrieb: [..] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
RE: [Samba] cupsaddsmb shows no output
could anyone help me debug this??? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] cupsaddsmb shows no output
simply reinstalled cups and ALL dependencies from scratch. worked like a charm ! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb shows no output
when i run this: # cupsaddsmb -H localhost -U root -a -v i get absolutely no ouput my drivers in /usr/share/cups/drivers are as follows: cups6.inf cups6.ini cupsps6.dll cupsui6.dll ps5ui.dll pscript5.dll pscript.hlp pscript.ntf what could be wrong??? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Cupsaddsmb fails
Hi All, I have Samba 3.0.22-1ubuntu4 running on Ubuntu 6.01 (eft) and am trying to add printers using cupsaddsmb. On running it I get the following: [EMAIL PROTECTED]:/home/printeradmin# cupsaddsmb -U root -a -v Password for root required to access /var/run/cups/cups.sock via SAMBA: Running command: smbclient ///var/run/cups/cups.sock/print$ -N -A /var/spool/cups/tmp/454b654e20cfa -c 'mkdir W32X86;put /var/spool/cups/tmp/454b654a99ee9 W32X86/AcuLaser-C2000.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' Connection to failed Unable to copy Windows 2000 printer driver files (1)! [EMAIL PROTECTED]:/home/printeradmin# I know that the right password has been entered and I've tried the name prefixed with the domain name as well. I've also tried wbinfo -g and -u which both work and -t works fine. The machine has also been successfully been attached to the domain and net rpc getsid BGS returns the correct sid. If anyone can shine some light on this I'd be grateful :) Cheers, Jools smb.conf is as below: [global] workgroup = BGS server string = PYKOTA security = domain encrypt passwords = true admin users = @admins ew bm jpb password server = 172.20.0.101 log file = /var/log/samba/log.%m log level = 3 max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 unix charset = ISO8859-15 os level = 18 local master = No dns proxy = No idmap uid = 15000-2 idmap gid = 15000-2 winbind use default domain = yes winbind enum users = yes winbind enum groups = yes ## Printing ## # CUPS printing. See also the cupsaddsmb(8) manpage in the # cupsys-client package. printing = cups printcap name = cups [printers] comment = All Printers browseable = no path = /tmp printable = yes public = no writable = no create mode = 0700 # Windows clients look for this share name as a source of downloadable # printer drivers [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes # Have also tried no guest ok = no # Uncomment to allow remote administration of Windows print drivers. # Replace 'ntadmin' with the name of the group your admin users are # members of. write list = root, @Domain Admins -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Cupsaddsmb fails
try: cupsaddsmb -U administrator or cupsaddsmb -U BGS\administrator ... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb
hi! i've a problem with my samba server and the cupsaddsmb tool for windows nt4.0 clients. I'm using cups 1.1.22 and samba 3.0.20b! the problem is, if i do a cupsaddsmb printer it will generate a directory with the drivers for windows. these drivers works perfectly with Win2000 Xp but they don't work with Win NT4.0! i used the cups-samba-1.1.19.tar.gz package to install the cups printer drivers but they wouldn't work under nt4.0! maybe someone can help me - i hope so! :-) thanks in advance andreas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb
Hi all, I'm trying to add printers with cupsaddsmb on Samba 3.0.20 (Mandrake Linux) with an LDAP backend. I've followed the howto on the samba page and have the error: result was WERR_INVALID_PRINTER_NAME generated when I run it. So far I've Googled for the solution but nothing listed has helped. The full set of errors are as follows: Cupsaddsmb returns: [EMAIL PROTECTED] etc]# cupsaddsmb -H SMB1 -h localhost -U BGS\\root -v -a Password for BGS\root required to access SMB1 via SAMBA: Running command: rpcclient SMB1 -N -U'BGS\root%xx' -c 'setdriver HPCLaJet2550 HPCLaJet2550' result was WERR_INVALID_PRINTER_NAME rpcclient enumprinters returns: [EMAIL PROTECTED] etc]# rpcclient -N -Uroot%xx -c enumprinters localhost flags:[0x80] name:[\\h2lptserver\pdf-gen] description:[\\h2lptserver\pdf-gen,,PDF Generator (only valid users)] comment:[PDF Generator (only valid users)] flags:[0x80] name:[\\h2lptserver\HPLaserjet2300] description:[\\h2lptserver\HPLaserjet2300,,HP LaserJet 2300] comment:[HP LaserJet 2300] flags:[0x80] name:[\\h2lptserver\HPCLaJet2550] description:[\\h2lptserver\HPCLaJet2550,hp color LaserJet 2550 PCL 6,HP Color LaserJet 2550] comment:[HP Color LaserJet 2550] smb.conf is: [global] workgroup = BGS server string = Samba Server %v printcap name = cups load printers = yes printcap cache time = 60 #printing = cups log file = /var/log/samba/%m.log max log size = 50 log level = 3 map to guest = bad user security = domain password server = SMB1 encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd idmap uid = 1-2 idmap gid = 1-2 winbind use default domain = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 os level = 10 idmap backend = ldap:ldap://172.20.0.101 ldap admin dn = cn=Administrator,dc=mydomain,dc=sch,dc=uk ldap suffix = dc=mydomain,dc=sch,dc=uk name resolve order = wins lmhosts bcast wins server = 172.20.0.101 dns proxy = no dos charset = 850 unix charset = ISO8859-1 # Share Definitions == [homes] comment = Home Directories browseable = no writable = yes # vfs objects = fake_perms [printers] comment = All Printers path = /var/spool/samba browseable = no # to allow user 'guest account' to print. guest ok = yes public = yes writable = no printable = yes create mode = 0700 printer admin = adm,root,fred,bert,joe # = # print command: see above for details. # = #print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers. print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients). #use client driver = yes [print$] path = /etc/samba/drivers browseable = yes guest ok = yes inherit permissions = yes writeable = yes write list = @Domain Admins @adm root fred,bert,joe [pdf-gen] path = /var/tmp guest ok = No printable = Yes comment = PDF Generator (only valid users) printing = bsd #print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP print command = /usr/share/samba/scripts/print-pdf %s %H //%L/%u %m %I %J lpq command = /bin/true Thanks all, Jools -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb
Julian Pilfold-Bagwell schrieb: Hi all, I'm trying to add printers with cupsaddsmb on Samba 3.0.20 (Mandrake Linux) with an LDAP backend. I've followed the howto on the samba page and have the error: result was WERR_INVALID_PRINTER_NAME generated when I run it. So far I've Googled for the solution but nothing listed has helped. The full set of errors are as follows: perhaps that's not it, but did you reaload or restart Samba after adding CUPS printers? -- Tomek http://wpkg.org WPKG - software deployment and upgrades with Samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Cupsaddsmb only running setdriver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I downloaded a fresh cd (Debian 3.1) to install a Printserver with. I've come to the bit that I can run cupsaddsmb, and expected it to run smbclient to add the drivers to the print$ share, and then rpcclient to do the addriver part and finaly the setdriver part. Unfortunatly, it is doing only the setdriver part, completely skipping all the previous steps it should take. This is the output: amsprint:/home/mark# cupsaddsmb -U root -v -a Password for root required to access localhost via SAMBA: Running command: rpcclient localhost -N -U'root%keepitsimple' -c 'setdriver Test2 Test2' Succesfully set Test2 to driver Test2. amsprint:/home/mark# See? No smbclient, no addriver, nothing it just skips it? My smb.conf: amsprint:/home/mark# cat /printserver/samba/smb.conf # # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which # are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentary and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command # testparm to check that you have not many any basic syntactic # errors. # #=== Global Settings === [global] ## Browsing/Identification ### # Change this to the workgroup/NT-domain name your Samba server will part of workgroup = ams # server string is the equivalent of the NT Description field server string = %h server (Samba %v) # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable its WINS Server ; wins support = no # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z # If we receive WINS server info from DHCP, override the options above. include = /etc/samba/dhcp.conf # This will prevent nmbd to search for NetBIOS names through DNS. dns proxy = no # What naming service and in what order should we use to resolve host names # to IP addresses ; name resolve order = lmhosts host wins bcast Debugging/Accounting # This tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/log.%m # Put a capping on the size of the log files (in Kb). max log size = 1000 # If you want Samba to only log through syslog then set the following # parameter to 'yes'. ; syslog only = no # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log # through syslog you should set the following parameter to something higher. syslog = 0 # Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ### Authentication ### # security = user is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc # package for details. security = user # You may wish to use password encryption. See the section on # 'encrypt passwords' in the smb.conf(5) manpage before enabling. encrypt passwords = true # If you are using encrypted passwords, Samba will need to know what # password database type you are using. passdb backend = tdbsam guest obey pam restrictions = yes ; guest account = nobody ; invalid users = root # This boolean parameter controls whether Samba attempts to sync the Unix # password with the SMB password when the encrypted SMB password in the # passdb is changed. ; unix password sync = no # For Unix password sync to work on a Debian GNU/Linux system, the following # parameters must be set (thanks to Augustin Luton [EMAIL PROTECTED] for # sending the correct chat script for the passwd program in Debian Potato). passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword :* %n\n . # This boolean controls whether PAM will be used for password changes # when requested by an SMB client instead of the program listed in # 'passwd program'. The default is 'no'. ; pam password change = no ## Printing ## # If you want to automatically load your printer list rather # than setting them up individually then you'll need this load printers = yes # lpr(ng) printing. You may wish to override the location of the # printcap file ; printing = bsd ; printcap name = /etc/printcap # CUPS printing. See also the cupsaddsmb(8) manpage in the # cupsys-client package.
[Samba] cupsaddsmb problem
Hi all, I have a problem with adding point and print to a print server. The server details are as follows: 700MHz Celeron + 384MB RAM Mandriva LE2005 (Mandrake 10.2) Samba 3.0.13-2mdk CUPS 1.1.23 cups drivers 10.2-0.11 gimpprint-cups 2-1.1.23-11 foomatic 3.0.2-1 The server is bound to an NT4 based domain (to be replaced with Linux/Samba in the summer) and winbind works fine with wbinfo -u and -g returning a full list of users and groups. Cups works fine printing from Linux clients but when I run cupsaddsmb to deliver the drivers to the XP client machines it fails to copy the files to the named folder. Running the command gives the output below: [EMAIL PROTECTED] printers]# cupsaddsmb -U jpb -h localhost HPLaserJet5L Password for jpb required to access localhost via SAMBA: [EMAIL PROTECTED] printers]# Running it in verbose mode only gives the following: [EMAIL PROTECTED] printers]# cupsaddsmb -U jpb -h localhost -v HPLaserJet5L Password for jpb required to access localhost via SAMBA: Running command: rpcclient localhost -N -U'jpb%pwchanged' -c 'setdriver HPLaserJet5L HPLaserJet5L' Succesfully set HPLaserJet5L to driver HPLaserJet5L. the final line of which suggests it's worked but the drivers aren't copied to the /var/lib/samba/printers folder and the clients can't find the drivers when p+p is tried. The smb.conf is shown below: [global] workgroup = SCHOOL server string = A1-lptserver netbios name = A1-lptserver security = domain encrypt passwords = Yes password server = NTServer public = yes browseable = yes lm announce = yes browse list = yes auto services = yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 unix charset = ISO8859-15 os level = 20 local master = No domain master = No preferred master = no dns proxy = No idmap uid = 1-2 idmap gid = 1-2 winbind enum users = yes winbind enum groups = yes template homedir = /home/%D/%U template shell = /bin/false winbind use default domain = yes hosts allow = 10.88.8. 10.88.9. 10.88.10. 10.88.11. 127. remote announce = 10.88.8.255 load printers = yes printcap name = cups [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes public = yes write list = bm,ew,jpb,@Domain Users,@adm [printers] comment = All Printers path = /var/spool/samba browseable = yes public = yes printer admin = bm ew jpb root @Domain Users guest ok = yes printable = yes create mode = 0700 and the permissions are set as follows on the /var/lib/samba/printers folder: drwxrwxr-x 7 root domain admins 4096 May 10 15:13 printers/ with the same on the subdirectories. jpb, bm and ew are named as allowed users in the write list and all three are also members of the domain admins group. Any help with this greatly appreciated. I get the feeling that it's something really obvious that I'm overlooking but I've been going round in circles and can't see the wood for the trees. Cheers, Julian PB -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] cupsaddsmb problem
Hi, I think that that is more of a cups problem rather than Samba's. I'm having the same problem with cups-1.1.22-0.rc1.8.5 on FC3. cupsaddsmb is adding only the NT4/win9x drivers (if they exist in Samba). Using the cupsaddsmb from cups-1.1.20-11.6 works like a charm. -Original Message- From: Julian Pilfold-Bagwell [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 13 de Maio de 2005 11:39 To: samba@lists.samba.org Subject: [Samba] cupsaddsmb problem Hi all, I have a problem with adding point and print to a print server. The server details are as follows: 700MHz Celeron + 384MB RAM Mandriva LE2005 (Mandrake 10.2) Samba 3.0.13-2mdk CUPS 1.1.23 cups drivers 10.2-0.11 gimpprint-cups 2-1.1.23-11 foomatic 3.0.2-1 The server is bound to an NT4 based domain (to be replaced with Linux/Samba in the summer) and winbind works fine with wbinfo -u and -g returning a full list of users and groups. Cups works fine printing from Linux clients but when I run cupsaddsmb to deliver the drivers to the XP client machines it fails to copy the files to the named folder. Running the command gives the output below: [EMAIL PROTECTED] printers]# cupsaddsmb -U jpb -h localhost HPLaserJet5L Password for jpb required to access localhost via SAMBA: [EMAIL PROTECTED] printers]# Running it in verbose mode only gives the following: [EMAIL PROTECTED] printers]# cupsaddsmb -U jpb -h localhost -v HPLaserJet5L Password for jpb required to access localhost via SAMBA: Running command: rpcclient localhost -N -U'jpb%pwchanged' -c 'setdriver HPLaserJet5L HPLaserJet5L' Succesfully set HPLaserJet5L to driver HPLaserJet5L. the final line of which suggests it's worked but the drivers aren't copied to the /var/lib/samba/printers folder and the clients can't find the drivers when p+p is tried. The smb.conf is shown below: [global] workgroup = SCHOOL server string = A1-lptserver netbios name = A1-lptserver security = domain encrypt passwords = Yes password server = NTServer public = yes browseable = yes lm announce = yes browse list = yes auto services = yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 unix charset = ISO8859-15 os level = 20 local master = No domain master = No preferred master = no dns proxy = No idmap uid = 1-2 idmap gid = 1-2 winbind enum users = yes winbind enum groups = yes template homedir = /home/%D/%U template shell = /bin/false winbind use default domain = yes hosts allow = 10.88.8. 10.88.9. 10.88.10. 10.88.11. 127. remote announce = 10.88.8.255 load printers = yes printcap name = cups [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes public = yes write list = bm,ew,jpb,@Domain Users,@adm [printers] comment = All Printers path = /var/spool/samba browseable = yes public = yes printer admin = bm ew jpb root @Domain Users guest ok = yes printable = yes create mode = 0700 and the permissions are set as follows on the /var/lib/samba/printers folder: drwxrwxr-x 7 root domain admins 4096 May 10 15:13 printers/ with the same on the subdirectories. jpb, bm and ew are named as allowed users in the write list and all three are also members of the domain admins group. Any help with this greatly appreciated. I get the feeling that it's something really obvious that I'm overlooking but I've been going round in circles and can't see the wood for the trees. Cheers, Julian PB -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb fails - files are not copied
Hello, i have problems getting the automatic driver installation for windows clients running. i am using cupsaddsmb, it creates the WIN40 Directory and tells me its putting files - but the Directory remains empty - and thats, so i guess, the reason for the rpccleint command failing (DOS error 0x0042 smth.) what am i doing wrong? regards sven wandersleb transcript of cupsaddsmb and smb.conf follow: edelstoff printer # ls -la total 0 drwxrwxrwx 2 root root 48 8. Mär 13:10 . drwxr-xr-x 4 root root 240 8. Mär 13:10 .. edelstoff printer # cupsaddsmb -U root -a -v Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%xxx' -c 'mkdir WIN40;put /var/spool/cups/tmp/422d962f9af3d WIN40/Laserknecht.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/ICONLIB.DLL WIN40/ICONLIB.DLL;put /usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;' Domain=[EDELSTOFF] OS=[Unix] Server=[Samba 3.0.11] putting file /var/spool/cups/tmp/422d962f9af3d as \WIN40/Laserknecht.PPD (4696.0 kb/s) (average 4696.0 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (43236.8 kb/s) (average 26480.1 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (46921.1 kb/s) (average 37518.4 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (37979.2 kb/s) (average 37567.8 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (28839.1 kb/s) (average 36985.9 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (18666.1 kb/s) (average 36113.6 kb/s) Running command: rpcclient localhost -N -U'root%xxx' -c 'adddriver Windows 4.0 Laserknecht:ADOBEPS4.DRV:Laserknecht.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,Laserknecht.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,ICONLIB.DLL' result was DOS code 0x0042 Password for root required to access localhost via SAMBA: [i just press enter, repeating does not help] Running command: rpcclient localhost -N -U'root%' -c 'adddriver Windows 4.0 Laserknecht:ADOBEPS4.DRV:Laserknecht.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,Laserknecht.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,ICONLIB.DLL' Cannot connect to server. Error was NT_STATUS_LOGON_FAILURE cupsaddsmb: Unable to install Windows 9x printer driver files (256)! edelstoff printer # ls -la total 0 drwxrwxrwx 3 root root 72 8. Mär 13:10 . drwxr-xr-x 4 root root 240 8. Mär 13:10 .. drwxr-xr-x 2 root root 48 8. Mär 13:10 WIN40 edelstoff printer # ls -la WIN40/ total 0 drwxr-xr-x 2 root root 48 8. Mär 13:10 . drwxrwxrwx 3 root root 72 8. Mär 13:10 .. edelstoff printer # smb.conf: [global] workgroup = MARCHIONINI server string = Samba Server map to guest = bad user security = user wins support = yes default case = lower load printers = yes default = public map to guest = Bad User encrypt passwords = yes update encrypted = Yes pam password change = Yes printcap name = cups passwd chat debug = Yes printing = cups max disk size = 1000 [print$] comment = Drucker-Treiber path = /etc/samba/printer guest ok = yes browseable = no public = yes writable = no printable = yes valid users = root,swandersleb write list = root,swandersleb printer admin = root,swandersleb [printers] comment = HP Color LaserJet 4500N print ok = yes guest ok = no [... some more file shares follow] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Cupsaddsmb
I have been trying to make a printer available to our department. I want to set it up so that Samba exports the driver to the Window's computer the first time the first attaches to the printer on the network. I did it once before successfully with an older version of Samba and Fredora Core 2. Now I am trying to do it with Fredora Core 3 without success. Below is the message I get every time I try to run Cupsaddsmb. [EMAIL PROTECTED] ~]# cupsaddsmb -U root -v -a cupsaddsmb: No PPD file for printer ECON - skipping! cupsaddsmb: No PPD file for printer Economics - skipping! [EMAIL PROTECTED] ~]# Any help anyone can give to get this setup correctly, I would appreciate. William F. Lott Director of Research Connecticut Center for Economic Analysis 341 Mansfield Ave., Unit-1240 University of Connecticut Storrs, CT 06269-1240 Tel: (860) 486-3885 Fax: (603) 658-0299 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb problems...
Hey everyone. Having a little problem getting cupsaddsmb to work correctly. I have been reading throw the Samb 3 book today as i am trying to have the ability for drivers for our printers to be automatically downloaded when a client adds the printer. I am using: FreeBSD 4.10 samba 2.2.11 cups 1.1 cups-samba I put the following info in smb.conf: [printers] comment = All printers path = /var/spool/samba printer admin = root jwilliams guest ok = yes printable = yes browseable = no hosts allow = 192.168.1. printer name = HP8150 4th floor public = yes writeable = no [print$] comment = Printer Drivers path = /usr/local/share/cups/drivers browseable = yes guest ok = no read only = yes write list = root On the 'printer's portion, the printer name section, is a printer that I added through the cups web interface. I then proceeded to execute this command: cupsaddsmb -U root -a -v (for verbose output) Here is the output: oxygen# cupsaddsmb -U root -a -v Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%test' -c 'mkdir W32X86;put /var/spool/cups/tmp/418bc44b04fd5 W32X86/SalesPrinter-4.ppd;put /usr/local/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/local/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/local/share/cups/drivers/cups5.hlp W32X86/cups5.hlp' added interface ip=192.168.1.93 bcast=192.168.1.255 nmask=255.255.255.0 Domain=[COURTESY] OS=[Unix] Server=[Samba 2.2.11] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/418bc44b04fd5 as \W32X86/SalesPrinter-4.ppd (9730.0 kb/s) (average Inf kb/s) putting file /usr/local/share/cups/drivers/cupsdrv5.dll as \W32X86/cupsdrv5.dll (54738.8 kb/s) (average 56640.2 kb/s) putting file /usr/local/share/cups/drivers/cupsui5.dll as \W32X86/cupsui5.dll (42878.1 kb/s) (average 49759.6 kb/s) putting file /usr/local/share/cups/drivers/cups5.hlp as \W32X86/cups5.hlp (14234.0 kb/s) (average 51149.6 kb/s) Running command: rpcclient localhost -N -U'root%test' -c 'adddriver Windows NT x86 SalesPrinter-4:cupsdrv5.dll:SalesPrinter-4.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL' cmd = adddriver Windows NT x86 SalesPrinter-4:cupsdrv5.dll:SalesPrinter-4.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL result was NT_STATUS_UNSUCCESSFUL Running command: rpcclient localhost -N -U'root%test' -c 'setdriver SalesPrinter-4 SalesPrinter-4' cmd = setdriver SalesPrinter-4 SalesPrinter-4 SetPrinter call failed! result was NT_STATUS_UNSUCCESSFUL (I hope this formats correctly). but as you can see, the result is NT_STATUS_UNSUCCESFUL. Now, I am having a heck of a time trying to figure out what the problem is. Also, here is a snip of what I see in /var/log/messages when I execute the above command: Nov 5 13:11:46 oxygen smbd[52086]: [2004/11/05 13:11:46, 0] printing/nt_printing.c:get_correct_cversion(1099) Nov 5 13:11:46 oxygen smbd[52086]: get_correct_cversion: Unable to connect I was hoping to get some help here to let me know what I am doing wrong. i appreciate the help. Jason -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb and .inf files
Hi, I've also got problems downloading drivers from samba to a windows client. I'm running Debian Samba 3.0.7-1, and Cupssys 1.1.20final My Windows Client is a Win2KPro. I succesfully installed my printers with Cups and they work fine under Linux, and from remote cups clients. I've been trying to follow the samba docs on serving postscript drivers for cups from the print share in section: http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html#id2563178 I run cupsaddsmb, it seems to work fine, and the files show up in /etc/samba/drivers/W32X86/2 which matches my path = /etc/samba/drivers line in my smb.conf file. (Full listing below). Typical cupsaddsmb output is: --- cupsaddsmb -v myprinter Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%secret' -c 'mkdir W32X86;put /var/spool/cups/tmp/4179785a142d2 W32X86/myprinter.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp' Domain=[HOUSE] OS=[Unix] Server=[Samba 3.0.7-Debian] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/4179785a142d2 as \W32X86/myprinter.ppd (6592.7 kb/s) (average 6592.8 kb/s) putting file /usr/share/cups/drivers/cupsdrv5.dll as \W32X86/cupsdrv5.dll (2606.7 kb/s) (average 2822.1 kb/s) putting file /usr/share/cups/drivers/cupsui5.dll as \W32X86/cupsui5.dll (6699.8 kb/s) (average 3689.9 kb/s) putting file /usr/share/cups/drivers/cups5.hlp as \W32X86/cups5.hlp (4633.3 kb/s) (average 3709.3 kb/s) Running command: rpcclient localhost -N -U'root%secret' -c 'adddriver Windows NT x86 myprinter:cupsdrv5.dll:myprinter.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL' Printer Driver myprinter successfully installed. Running command: rpcclient localhost -N -U'root%secret' -c 'setdriver myprinter myprinter' Succesfully set myprinter to driver myprinter. --- The expected files appeared in /etc/samba/drivers/W32X86/2/ which were: myprinter.ppd* cups5.hlp* cupsdrv5.dll* cupsui5.dll* When I point my win2k client at a networked printer I get these mesages: The server on which the myprinter printer resides does not have the correct printer dirver installed. If you want to install the driver on your local computer, click Ok. Then I get the flashlight dialog box with the title Connecting to myprinter on houseserv Lastly I get a box with The file '*.INF' on (Unknown) is needed I'm not sure why it says (Unknown) here but It's a home network that mostly uses /etc/hosts files but I don't think windows has these so I have to trust that it can find the network shares using samba, and they do show up just fine. In my Samba log file I get: [2004/10/22 13:15:08, 0] smbd/service.c:make_connection(800) windoze-6uqevsu (192.168.0.2) couldn't find service ::{2227a280-3aea-1069-a2de-08002b30309d} But I'm not sure what this service number relates to. A while back Michael Lueck posted a hand made INF file to work with the adobe universal driver which looks like this: --- ; PSCRIPT.INF ; ; Michael Lueck, Lueck Data Systems ; Version 1.1 ; This INF is intended to be used with: ; Adobe Universal PostScript Windows Driver Installer 1.0.6 - English [Version] Signature=$Windows NT$ Provider=Adobe LayoutFile=layout.inf ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318} Class=Printer [Manufacturer] Adobe [Adobe] AdobePSGenericPostScriptPrinter = DEFPRTR2.PPD [DEFPRTR2.PPD] CopyFiles=PSCRIPT DataSection=PSCRIPT_DATA [PSCRIPT] DEFPRTR2.PPD PS5UI.DLL PSCRIPT.HLP PSCRIPT.NTF PSCRIPT5.DLL [PSCRIPT_DATA] DriverFile=PSCRIPT5.DLL ConfigFile=PS5UI.DLL HelpFile=PSCRIPT.HLP [DestinationDirs] DefaultDestDir=66000 [ControlFlags] ExcludeFromSelect = 2369 --- Now I tried to edit this to work with the Cups set of files but I'm not a windows hacker and it still gave me the same message. Maybe one needs to do more than just copying it into /etc/samba/drivers/W32X86/2 and restart samba? I've been searching high and low on how to do this but haven't found too many clues yet. It would be helpfull to know which files windows is looking for exactly. What cryteria does it use to pick INF files? Alternativly I tried to install the Adobe drivers but apparently only the win2k files were placed on my client so the cupsaddsmb complained about the other ADOBE* files not being there. I could install an old win98 on some machine just to get the rest of the those files but it seems like a lot of work just to make cupsaddsmb happy. I sapose I could manually run the commands to do the install, but I'm hopeing for a more general solution. I also tried to unzip the winsteng.exe
Re: [Samba] cupsaddsmb question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim C. wrote: ... | tree connect failed: NT_STATUS_WRONG_PASSWORD | | | with this smb.conf: | | [global] | workgroup = TEMP | security = SHARE | passdb backend = guest This has got to eb about the 1000th fime I've said this, but driver download is not supported under security = share. And the funny thing is that most people don't need it. If you want guest access only, the set security = user map to guest = bad user username map = /etc/smbusers ## /etc/smbusers foo = * Hope this helps. cheers, jerry - - Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc If we're adding to the noise, turn off this song--Switchfoot (2003) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBIgEoIR7qMdg1EfYRAtyaAJ47DTH0xgnSQ7hE9hTw4VFQHDXfagCfULLJ rAENIY8GaPw94xO5vBWUMSw= =84d0 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb question
chuckleWell I sure didn't see that in the howtos. Since there is no specific setting in smb.conf that pertains to this issue, it probably isn't there in the man pages either. This might explain why you have to repeat yourself. I was using share mode rather than user mode because the system in question is purely experimental. My production system is a PDC with an LDAP backend. Anyway, thanks for the tip. I'll try setting the security mode to user and perhaps I'll set it up to use the ldap backend if need be. This has got to eb about the 1000th fime I've said this, but driver download is not supported under security = share. And the funny thing is that most people don't need it. If you want guest access only, the set security = user map to guest = bad user username map = /etc/smbusers ## /etc/smbusers foo = * Hope this helps. -- - | I can be reached on the following Instant Messenger services: | |---| | MSN: [EMAIL PROTECTED] AIM: WyteLi0n ICQ: 123291844 | |---| | Y!: j_c_llings Jabber: [EMAIL PROTECTED]| - -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb question
Guys, I need a clue here. The command I am using is: cupsaddsmb -H kaliklak -U Administrator -h kaliklak -v Lex_Z53 and despite the fact that the password used is correct the result is: [EMAIL PROTECTED] root]# cupsaddsmb -H kaliklak -U root -h kaliklak -v Lex_Z53 Password for root required to access kaliklak via SAMBA: Running command: smbclient //kaliklak/print\$ -N -U'root%XX' -c 'mkdir W32X86;put /root/tmp/41218e40c6e1c W32X86/Lex_Z53.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' Domain=[TEMP] OS=[Unix] Server=[Samba 3.0.5pre1] tree connect failed: NT_STATUS_WRONG_PASSWORD with this smb.conf: [global] workgroup = TEMP security = SHARE passdb backend = guest printing = cups printcap name = cups [printers] comment = All Printers path = /var/spool/samba browseable = No public = Yes guest ok = Yes writable = No printable = Yes printer admin = root ;use client driver = Yes [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = Yes guest ok = No read only = Yes write list = root Any ideas? -- - | I can be reached on the following Instant Messenger services: | |---| | MSN: [EMAIL PROTECTED] AIM: WyteLi0n ICQ: 123291844 | |---| | Y!: j_c_llings Jabber: [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] cupsaddsmb encounter with good info supplied (Plain text)
Mark Maas wrote: Sorry, Should have used plain text to begin with and better wrapping: Hi People, Trying to be as informative as possible: I'm trying to add printers drivers to cups-owned, samba shared printer. Called PDF-Creator But when I issue the command cupsaddsmb -U root -v PDF-Creator I get a NT_STATUS_LOGON_FAILURE Weird thing is: I was able to do this a few months ago. But I noticed the drivers where missing when I wanted to add this printer to one of my windows workstations. So I thought: Well let's just run the good-ol cupsaddsmb and where fine... No go evidently... Only thing changed since then is a newer version of Samba (3.0.4) and a newer version of Cups that came with it (Debian Distro, Sarge) Here's what I have: # pdbedit -L root -v Unix username:root NT username: Account Flags:[U ] User SID: S-1-5-21-2607698634-1356104974-381704672-1000 Primary Group SID:S-1-5-21-2607698634-1356104974-381704672-513 Full Name: Home Directory: HomeDir Drive: Logon Script: Profile Path: Domain: ENTERPRISE Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: Fri, 13 Dec 1901 21:45:51 GMT Kickoff time: 0 Password last set:Fri, 25 Jun 2004 19:15:25 GMT Password can change: Mon, 28 Jun 2004 19:15:25 GMT Password must change: Thu, 23 Sep 2004 19:15:25 GMT Last bad password : Fri, 25 Jun 2004 19:16:08 GMT Bad password count : 1 # cupsaddsmb -U root -v PDF-Creator Password for root required to access localhost via SAMBA: tree connect failed: NT_STATUS_LOGON_FAILURE Password for root required to access localhost via SAMBA: Anonymous login successful NT_STATUS_NETWORK_ACCESS_DENIED making remote directory \W32X86 NT_STATUS_ACCESS_DENIED opening remote file \W32X86/PDF-Creator.ppd NT_STATUS_ACCESS_DENIED opening remote file \W32X86/cupsdrv5.dll NT_STATUS_ACCESS_DENIED opening remote file \W32X86/cupsui5.dll NT_STATUS_ACCESS_DENIED opening remote file \W32X86/cups5.hlp Running command: smbclient //localhost/print\$ -N -U'root%keepitsimple' -c 'mkdir W32X86;put /var/spool/cups/tmp/40dc5e1025de6 W32X86/PDF-Creator.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp' Running command: smbclient //localhost/print\$ -N -U'root%' -c 'mkdir W32X86;put /var/spool/cups/tmp/40dc5e1025de6 W32X86/PDF-Creator.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp' Samba log says: [2004/06/25 19:17:07, 0] smbd/service.c:make_connection_snum(541) Can't become connected user! [2004/06/25 19:17:09, 1] smbd/service.c:make_connection_snum(619) menem (127.0.0.1) connect to service print$ initially as user nobody (uid=65534, gid=65534) (pid 8880) [2004/06/25 19:17:09, 1] smbd/service.c:close_cnum(801) menem (127.0.0.1) closed connection to service print$ So what does Can't become connected user! mean? Googling it does not reveal anything? Thanks for any help! Mark Oh well, does anyone at least know what Can't become connected user! means? I think my answer lies there.. Mark -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb encounter with good info supplied (Plain text)
Sorry, Should have used plain text to begin with and better wrapping: Hi People, Trying to be as informative as possible: I'm trying to add printers drivers to cups-owned, samba shared printer. Called PDF-Creator But when I issue the command cupsaddsmb -U root -v PDF-Creator I get a NT_STATUS_LOGON_FAILURE Weird thing is: I was able to do this a few months ago. But I noticed the drivers where missing when I wanted to add this printer to one of my windows workstations. So I thought: Well let's just run the good-ol cupsaddsmb and where fine... No go evidently... Only thing changed since then is a newer version of Samba (3.0.4) and a newer version of Cups that came with it (Debian Distro, Sarge) Here's what I have: # pdbedit -L root -v Unix username:root NT username: Account Flags:[U ] User SID: S-1-5-21-2607698634-1356104974-381704672-1000 Primary Group SID:S-1-5-21-2607698634-1356104974-381704672-513 Full Name: Home Directory: HomeDir Drive: Logon Script: Profile Path: Domain: ENTERPRISE Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: Fri, 13 Dec 1901 21:45:51 GMT Kickoff time: 0 Password last set:Fri, 25 Jun 2004 19:15:25 GMT Password can change: Mon, 28 Jun 2004 19:15:25 GMT Password must change: Thu, 23 Sep 2004 19:15:25 GMT Last bad password : Fri, 25 Jun 2004 19:16:08 GMT Bad password count : 1 # cupsaddsmb -U root -v PDF-Creator Password for root required to access localhost via SAMBA: tree connect failed: NT_STATUS_LOGON_FAILURE Password for root required to access localhost via SAMBA: Anonymous login successful NT_STATUS_NETWORK_ACCESS_DENIED making remote directory \W32X86 NT_STATUS_ACCESS_DENIED opening remote file \W32X86/PDF-Creator.ppd NT_STATUS_ACCESS_DENIED opening remote file \W32X86/cupsdrv5.dll NT_STATUS_ACCESS_DENIED opening remote file \W32X86/cupsui5.dll NT_STATUS_ACCESS_DENIED opening remote file \W32X86/cups5.hlp Running command: smbclient //localhost/print\$ -N -U'root%keepitsimple' -c 'mkdir W32X86;put /var/spool/cups/tmp/40dc5e1025de6 W32X86/PDF-Creator.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp' Running command: smbclient //localhost/print\$ -N -U'root%' -c 'mkdir W32X86;put /var/spool/cups/tmp/40dc5e1025de6 W32X86/PDF-Creator.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp' Samba log says: [2004/06/25 19:17:07, 0] smbd/service.c:make_connection_snum(541) Can't become connected user! [2004/06/25 19:17:09, 1] smbd/service.c:make_connection_snum(619) menem (127.0.0.1) connect to service print$ initially as user nobody (uid=65534, gid=65534) (pid 8880) [2004/06/25 19:17:09, 1] smbd/service.c:close_cnum(801) menem (127.0.0.1) closed connection to service print$ So what does Can't become connected user! mean? Googling it does not reveal anything? Thanks for any help! Mark -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb encounter with good info supplied (Plain text)
But when I issue the command cupsaddsmb -U root -v PDF-Creator I get a NT_STATUS_LOGON_FAILURE There can be a difference, what root password you are using. One root user with own password can exist in /etc/smbpasswd file and another in /etc/passwd as true UNIX root. Its a good security practice to keep those users have different passwords. For cupsaddsmb you must provide /etc/smbpasswd root password. TP -- Tato sprava bola prehladana na vyskyt virusov a nebezpecneho obsahu antivirovym systemom na serveri spolocnosti Jaga Group s.r.o. a zda sa byt cista. Info: [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] cupsaddsmb encounter with good info supplied (Plain text)
But when I issue the command cupsaddsmb -U root -v PDF-Creator I No more experiences from my side helpfull for you. Maybe minus in PDF-Creator is parsed as additional flags for cupsaddsmb? What about PDF_Creator? TP -- Tato sprava bola prehladana na vyskyt virusov a nebezpecneho obsahu antivirovym systemom na serveri spolocnosti Jaga Group s.r.o. a zda sa byt cista. Info: [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] cupsaddsmb encounter with good info supplied (Plain text)
Tomás Polák wrote: But when I issue the command cupsaddsmb -U root -v PDF-Creator I get a NT_STATUS_LOGON_FAILURE There can be a difference, what root password you are using. One root user with own password can exist in /etc/smbpasswd file and another in /etc/passwd as true UNIX root. Its a good security practice to keep those users have different passwords. For cupsaddsmb you must provide /etc/smbpasswd root password. TP True, the /etc/passwd version is a different thing than the samba account. I tried with the /etc/passwd version first and then when that did not work I tried adding the root account to samba with smbpasswd -a root So both accounts gave this error. I'm still trying different things, but right now any help would be apreciated! Thanks again, Mark -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb
Matteo matteo at ilteo.it Thu May 20 21:50:34 GMT 2004 HI! I've a problem with cupsaddsmb!! :-( You'd surely harvest a more definite answer if you had spiced the question seed with some version info about CUPS, Samba and the OS-s you're using... At the console I type: cupsaddsmb -U root -v printername and after some operations complete correctly appear this error: [...] Running command: rpcclient localhost -N -U'root%' -c 'adddriver Windows NT x86 eps6100l:cupsdrv5.dll:eps6100l.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL' cmd = adddriver Windows NT x86 eps6100l:cupsdrv5.dll:eps6100l.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL Printer Driver eps6100l successfully installed. Running command: rpcclient localhost -N -U'root%' -c 'setdriver eps6100l eps6100l' cmd = setdriver eps6100l eps6100l result was NT_STATUS_UNSUCCESSFUL This last error is typically showing up if your printer eps61001 is not yet known to Samba. This may happen if you just installed that printer freshly in CUPS and run cupsaddsmb before doing a kill -HUP `pidof smbd` The most recent Samba version (3.0.4) shouldn't require this any more. But older versions only learn about these printers which are available at smbd startup, and don't auto-learn new printers added during smbd runtime. Why rpcclient can't associate my shared printer with the successfully installed printer driver? Likely because the shared printer doesn't exist from Samba's point of view... Check it with rpcclient -Uroot%smbpassword -c enumprinters sambahostname What is the matter? Any idea? Thanks! ilteo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb
HI! I've a problem with cupsaddsmb!! :-( At the console I type: cupsaddsmb -U root -v printername and after some operations complete correctly appear this error: [...] Running command: rpcclient localhost -N -U'root%' -c 'adddriver Windows NT x86 eps6100l:cupsdrv5.dll:eps6100l.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL' cmd = adddriver Windows NT x86 eps6100l:cupsdrv5.dll:eps6100l.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL Printer Driver eps6100l successfully installed. Running command: rpcclient localhost -N -U'root%' -c 'setdriver eps6100l eps6100l' cmd = setdriver eps6100l eps6100l result was NT_STATUS_UNSUCCESSFUL Why rpcclient can't associate my shared printer with the successfully installed printer driver? What is the matter? Any idea? Thanks! ilteo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb: can't authenticate smbpasswd user with ADS security
Greetings Admins, I have a samba3.0.2 machine with security = ADS. This samba will work with CUPS to serve print request to XP clients. I can authenticate the domain users just fine. I am now trying to copy the printer drivers to the [print$] share by using the 'cupsaddsmb' command but I am getting an NT_STATUS_LOGON_FAILURE. It cannot find the root user in the domain. Of course, a 'root' does not exist in the domain but I have defined it using smbpasswd. I need to use root because is the owner of [print$] share. Can someone please help?? I have included some interesting debugging info below. thanks, Ryan --- pykota:/usr/local/samba/logs# cupsaddsmb -U root -v -a Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%secret' -c 'mkdir W32X86;put /var/spool/cups/tmp/406b3d53c47f3 W32X86/oa-a125-e1.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp' session setup failed: NT_STATUS_LOGON_FAILURE pykota:/usr/local/samba/private# cat smbpasswd root:0:6497A95D9025F17FC2A20CAE7226E17D:1980A3765ADB565C994684FD718C8601:[U ]:LCT-406B3B89: pykota:/usr/local/samba/logs# cat pykota.log [2004/03/31 16:51:17, 0] auth/auth_domain.c:domain_client_validate(204) domain_client_validate: unable to validate password for user root in domain SHERNET-T to Domain controller \\OA-SHERNET-T1. Error was NT_STATUS_NO_SUCH_USER. [2004/03/31 16:51:17, 5] auth/auth.c:check_ntlm_password(271) check_ntlm_password: winbind authentication for user [root] FAILED with error NT_STATUS_NO_SUCH_USER [2004/03/31 16:51:17, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [root] - [root] FAILED with error NT_STATUS_NO_SUCH_USER pykota:/usr/local/samba/lib# cat smb.conf [global] workgroup = SHERNET-T1 netbios name = pykota log file = /usr/local/samba/logs/%m.log max log size = 5 debug level = auth:10 name resolve order = wins host bcast wins server = dc.shernet-t.sheridanc.ca wins proxy = no wins support = no dns proxy = yes local master = no preferred master = no domain master = no os level = 0 security = ADS encrypt passwords = yes password server = * realm = SHERNET-T.SHERIDANC.CA interfaces = 142.55.100.8/24 allow hosts = 142.55. localhost printing = cups printcap name = cups load printers = yes socket options = TCP_NODELAY [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = yes public = yes writeable = no printable = yes printer admin = root create mode = 0700 [print$] comment = Printer Drivers path = /usr/local/samba/drivers browseable = yes guest ok = no read only = yes write list = root -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb - tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Greetings Admin, I'm trying to setup samba 2.2.8a, with domain authentication, to interface with CUPS 1.1.20 on debian linux. I'm having problems running the cupsaddsmb command to copy the CUPS drivers to the samba [print$] share. I am getting a tree connect failed: NT_STATUS_BAD_NETWORK_NAME error. Could someone please let me know how to fix this? much appreciated, Ryan HERE IS THE ERROR cups:/usr/local/samba/bin# cupsaddsmb -v -H printserv -U SOMEUID -a Password for itadmin required to access cups via SAMBA: Running command: smbclient //cups/print\$ -N -U'SOMEUID%SOMEPASSWORD' -c 'mkdir W32X8 6;put /var/spool/cups/tmp/4060b6407542b W32X86/oa-c152-e1.ppd;put /usr/share/cup s/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.d ll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp' added interface ip=142.55.100.54 bcast=142.55.100.255 nmask=255.255.255.0 Got a positive name query response from 142.55.100.62 ( 142.55.100.54) Domain=[SHERNET] OS=[Unix] Server=[Samba 2.2.8a] tree connect failed: NT_STATUS_BAD_NETWORK_NAME HERE IS MY SMB.CONF [global] workgroup = SHERNET netbios name = printserv log file = /usr/local/samba/logs/%m.log max log size = 5 debug level = 1 name resolve order = wins host bcast wins server = win2k.sheridanc.ca wins proxy = no wins support = no dns proxy = yes local master = no preferred master = no domain master = no os level = 0 security = domain encrypt passwords = true password server = * interfaces = 142.55.100.54/24 allow hosts = 142.55. localhost hosts deny = 142.55.27.201 printing = cups printcap = cups load printers = yes socket options = TCP_NODELAY [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = yes public = yes writeable = no printable = yes printer admin = pc create mode = 0700 [print$] comment = Printer Drivers path = /usr/local/samba/drivers browseable = yes guest ok = no read only = yes write list = root -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb adobe error message
[Samba] cupsaddsmb adobe error message Sundaram Ramasamy sun at percipia.com Fri Mar 12 04:18:05 GMT 2004 Hi, I am trying to add automatic driver install, its giving me ADOBEPS5.DLL file not found error message. You should read the man page of cupsaddsmb. It would tell you that the preparation to be completed *before* running the command consists, amongst other things, to place the Windows driver files into the /usr/share/cups/drivers/ repository. (Unfortunately the license prohibits the free re-distribution of the Adobe driver files.) Where can I get these files? From any Windows 2K/XP workstation that shares a PostScript printer It will have a share named print$ where it offeres driver files for Point'n'Print installations. Try this: smbclient -U windowsusername //windowshostname/print\$ cd w32x86 cd 2 mget ADOBEPS*.* Another option is to go to the Adobe website and search for their PostScript driver. Cheers, Kurt My configuration Samba 3.0.2a with cups. # cupsaddsmb -U root -v -a Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%abc123' -c 'mkdir W32X86;put /var/spool/cups/tmp/4051394ee08ec W32X86/pdf.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' Domain=[TUX-NET] OS=[Unix] Server=[Samba 3.0.2a-SuSE] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/4051394ee08ec as \W32X86/pdf.PPD (6463.0 kb/s) (average 6463.2 kb/s) /usr/share/cups/drivers/ADOBEPS5.DLL does not exist /usr/share/cups/drivers/ADOBEPSU.DLL does not exist /usr/share/cups/drivers/ADOBEPSU.HLP does not exist Password for root required to access localhost via SAMBA: -SR -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb adobe error message
Hi, I am trying to add automatic driver install, its giving me ADOBEPS5.DLL file not found error message. Where can I get these files? My configuration Samba 3.0.2a with cups. # cupsaddsmb -U root -v -a Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%abc123' -c 'mkdir W32X86;put /var/spool/cups/tmp/4051394ee08ec W32X86/pdf.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' Domain=[TUX-NET] OS=[Unix] Server=[Samba 3.0.2a-SuSE] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/4051394ee08ec as \W32X86/pdf.PPD (6463.0 kb/s) (average 6463.2 kb/s) /usr/share/cups/drivers/ADOBEPS5.DLL does not exist /usr/share/cups/drivers/ADOBEPSU.DLL does not exist /usr/share/cups/drivers/ADOBEPSU.HLP does not exist Password for root required to access localhost via SAMBA: -SR -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb with winbind
Question Title: cupsaddsmb with winbind Author: leonst Points: 125 Date: 12/19/2003 03:08PM GMT Hi, I've just upgraded my Samba server from 2.2.7 to 3.0.1. I was mapping users to nobody/guest but as this doesn't seem to work I'm using winbind and users are authenticating to print fine. The problem is that cupsaddsmb no longer works and I'm assuming the problem is getting my credentials past winbind when run from the console. I've tried the Samba cupsaddsmb troubleshooting guide [CUPS-printing.html#id2945506] and I fail at the second step (with root pw in place of question marks): rpcclient -Uroot%?? -c 'enumprinters' localhost Returns: failed session setup with NT_STATUS_LOGON_FAILURE Cannot connect to server. Error was NT_STATUS_LOGON_FAILURE Does anyone know how I can use accounts to add drivers with winbind (assuming winbind *is* the problem). Thanks, Leon --- RedHat 9.0, CUPS 1.1.19, Samba 3.0.1 - Email provided by http://www.ntlhome.com/ -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb / rpcclient problems ...
Hi, I'm having a strange problem with cupsaddsmb ... it fails whenever I try to use it while using the rpcclient command ... the addriver command just fails (like below). Does anyone know what is wrong with the command cupsaddsmb is passing to rpcclient? Adding drivers through the windows point and print works fine ... this is samba 2.2.8a, Windows PDC. As far as I can tell, what cupsaddsmb is passing to rpcclient is valid, it just doesn't work (nor does it work manually using the adddriver command). Running command: smbclient //localhost/print\$ -N -U'printadmin%password' -c ' mkdir W32X86;put /var/spool/cups/tmp/3fc28b076c9dc W32X86/n0216-8000-ps.ppd;put /usr/share/cups/drivers/cupsdrvr.dll W32X86/cupsdrvr.dll;put /usr/share/cups/dri vers/cupsui.dll W32X86/cupsui.dll;put /usr/share/cups/drivers/cups.hlp W32X86/cu ps.hlp' added interface ip=161.160.119.20 bcast=161.160.119.255 nmask=255.255.255.0 Domain=[NOLA] OS=[Unix] Server=[Samba 2.2.8a] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/3fc28b076c9dc as \W32X86/n0216-8000-ps.ppd (538 03.0 kb/s) (average 53805.7 kb/s) putting file /usr/share/cups/drivers/cupsdrvr.dll as \W32X86/cupsdrvr.dll (54370 .0 kb/s) (average 54209.5 kb/s) putting file /usr/share/cups/drivers/cupsui.dll as \W32X86/cupsui.dll (52696.0 k b/s) (average 53659.6 kb/s) putting file /usr/share/cups/drivers/cups.hlp as \W32X86/cups.hlp (14234.0 k b/s) (average 54923.3 kb/s) Running command: rpcclient localhost -N -U'printadmin%password' -c 'adddriver Windows NT x86 n0216-8000-ps:cupsdrvr.dll:n0216-8000-ps.ppd:cupsui.dll:cups.h lp:NULL:RAW:NULL' cmd = adddriver Windows NT x86 n0216-8000-ps:cupsdrvr.dll:n0216-8000-ps.ppd:c upsui.dll:cups.hlp:NULL:RAW:NULL result was NT_STATUS_UNSUCCESSFUL Running command: rpcclient localhost -N -U'printadmin%password' -c 'setdriver n0216-8000-ps n0216-8000-ps' cmd = setdriver n0216-8000-ps n0216-8000-ps Succesfully set n0216-8000-ps to driver n0216-8000-ps. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb error message
Hi. Im trying to get cups-printing to work on samba 3.0 - RH9. We are having NT WTS Metaframe servers as the client But when running command cupsaddsmb -U root -a -v i get the following error: Warning: No PPD file for printer printername - skipping! I have copied over theese files to \usr\share\cups\drivers before running the command [Windows NT, 2000, and XP] cups.hlp cupsdrvr.dll cupsui.dll [Windows NT, 2000, and XP] ADOBEPS5.DLL ADOBEPSU.DLL ADOBEPSU.HLP I have the following cups settings in smb.conf : [Global] load printers = yes printing = cups printcap name = cups [printers] comment = All Printers path = /var/spool/samba public = Yes guest ok = Yes writeable = no printable = Yes browseable = no printer admin = root [print$] comment = Printer Drivers path = /usr/local/samba/drivers guest ok = yes browseable = yes read only = yes write list = root ; if this share is configured as read only, then we need ; a 'write list'. Check the file system permissions to make ; sure this account can copy files to the share. If this ; is setup to a non-root account, then it should also exist ; as a 'printer admin' write list = @ntadmin,root Any tips on what to look for would have been great... Thanks Ketil -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb claims to work but fails
The enumdrivers 3 command is buggy in most versions of Samba 2.2.x. Just avoid level 3. Use plain enumdrivers and enumdrivers 2 Same result. Lookup bug #82 in sambas bug tracker. Sorry, I don't find a bug #82 on http://bugs.samba.org. I see incoming/21867 which is close but not the same. I'll try to get the 3.0 branch... You haven't looked in the right place. Try this: https://bugzilla.samba.org/show_bug.cgi?id=82 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb claims to work but fails
attempts. I managed to make cupsaddsmb run without producing an error, but it fails. *Where* does it fail? *What* is not working for you? The drivers seem to be not added properly. The files are in the right directories, but enumdrivers returns nothing. Furthermore under windows (W2K SP4), the files are visible on the properties tab for print$, but when I try to add the printer, it says that no driver is adequate on the server. The enumdrivers 3 command is buggy in most versions of Samba 2.2.x. Just avoid level 3. Use plain enumdrivers and enumdrivers 2 Same result. Lookup bug #82 in sambas bug tracker. The necessary changes were incorporated in the 3.0 branch but not yet in 2.2.x. But it should be easy to patch a couple of lines of source and recompile samba. Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[samba] CUPSADDSMB Error - Was working - Now broke
I run cupsaddsmb -a -v from the command line, it prompts me for the password, I give it the password, it rejects it and errors like this [EMAIL PROTECTED] lib]# cupsaddsmb -a -v Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%f0rget' -c 'mkdir W32X86;put /var/spool/cups/tmp/3f27f50fdff51 W32X86/comp2.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' Unknown parameter encountered: ldap server Ignoring unknown parameter ldap server Unknown parameter encountered: ldap port Ignoring unknown parameter ldap port Unknown parameter encountered: ldap suffix Ignoring unknown parameter ldap suffix Unknown parameter encountered: ldap admin dn Ignoring unknown parameter ldap admin dn Unknown parameter encountered: ldap ssl Ignoring unknown parameter ldap ssl added interface ip=209.99.108.82 bcast=209.99.108.127 nmask=255.255.255.192 added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 Domain=[STEDS] OS=[Unix] Server=[Samba 2.2.8a] tree connect failed: NT_STATUS_BAD_NETWORK_NAME Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%' -c 'mkdir W32X86;put /var/spool/cups/tmp/3f27f50fdff51 W32X86/comp2.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' Unknown parameter encountered: ldap server Ignoring unknown parameter ldap server Unknown parameter encountered: ldap port Ignoring unknown parameter ldap port Unknown parameter encountered: ldap suffix Ignoring unknown parameter ldap suffix Unknown parameter encountered: ldap admin dn Ignoring unknown parameter ldap admin dn Unknown parameter encountered: ldap ssl Ignoring unknown parameter ldap ssl added interface ip=209.99.108.82 bcast=209.99.108.127 nmask=255.255.255.192 added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 Anonymous login successful Domain=[STEDS] OS=[Unix] Server=[Samba 2.2.8a] tree connect failed: NT_STATUS_BAD_NETWORK_NAME ERROR: Unable to copy Windows printer driver files (256)! I don't understand why this is not working. Why is it trying to bind anonymous? -- Corey Hart Systems/Security Analyst St. Edward's University -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb claims to work but fails
Damien Bonvillain kame at cinemasie.com wrote on Samba-digest Tue Jul 29 00:58:38 GMT 2003 Case strange... I've past probably 30 hours by now on this, crawling the web, and doing attempts. I managed to make cupsaddsmb run without producing an error, but it fails. *Where* does it fail? *What* is not working for you? Ask me for anything, I am asking you for a detailed description of any error. Your mail only includes successfull commands and their output The enumdrivers 3 command is buggy in most versions of Samba 2.2.x. Just avoid level 3. Use plain enumdrivers and enumdrivers 2 full trace, versions and so on, but please, if someone has an idea, share it. Linux Debian Woody unstable Cups 1.1.19final-1 Samba 2.2.3a-14 smb.conf Cheers, Kurt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb claims to work but fails
Damien Bonvillain kame at cinemasie.com wrote on Samba-digest Tue Jul 29 00:58:38 GMT 2003 Case strange... I've past probably 30 hours by now on this, crawling the web, and doing attempts. I managed to make cupsaddsmb run without producing an error, but it fails. *Where* does it fail? *What* is not working for you? The drivers seem to be not added properly. The files are in the right directories, but enumdrivers returns nothing. Furthermore under windows (W2K SP4), the files are visible on the properties tab for print$, but when I try to add the printer, it says that no driver is adequate on the server. Ask me for anything, I am asking you for a detailed description of any error. Your mail only includes successfull commands and their output That is what is strange :-) The enumdrivers 3 command is buggy in most versions of Samba 2.2.x. Just avoid level 3. Use plain enumdrivers and enumdrivers 2 Same result. Attached a level 7 smbd log corresponding to the whole cupsaddsmb. Damien -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb NT_STATUS_NO_SUCH_DEVICE
[Samba] cupsaddsmb NT_STATUS_NO_SUCH_DEVICE Shanti Katta katta at csee.wvu.edu Tue Jun 17 21:01:43 GMT 2003 Hello, I am using cups-1.1.19final-1.deb and samba-2.2.3a. When I was working with cups-1.1.15 before, cupsaddsmb worked fine, but now with cups-1.1.19 it gives me: Running command: smbclient //localhost/print\$ -N -U'root%secret?' -c 'mkdir WIN40;put /var/spool/cups/tmp/3eef829eea1b8 WIN40/ps948esb.PPD;put /usr/share/cups/drivers/ADFONTS.MFM [] putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (10909.1 kb/s) (average 16587.7 kb/s) /usr/share/cups/drivers/PSMON.DLL does not exist Have you investigated this line? Running command: rpcclient localhost -N -U'root%secret?' -c 'adddriver [] result was NT_STATUS_NO_SUCH_DEVICE [] I checked the permissions on /var/spool/samba and other related directories, but couldn't resolve the error for 2 days now. Any help is highly appreciated. Shanti Cheers, Kurt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb NT_STATUS_NO_SUCH_DEVICE
After adding PSMON.DLL, when I run cupsaddsmb, it gives: Running command: rpcclient localhost -N -U'root%secret?' -c 'setdriver ps212erb ps212erb' session setup ok Domain=[CSEENTDOMAIN] OS=[Unix] Server=[Samba 2.2.3a-12.3 for Debian] cmd = setdriver ps212erb ps212erb setdriver ps212erb ps212erb prs_mem_get: reading data of size 4 would overrun buffer. and /var/log/samba/log.machine says: cli_net_sam_logon_internal: NT_STATUS_NO_SUCH_USER [2003/06/19 14:39:52, 0] smbd/password.c:domain_client_validate(1572) domain_client_validate: unable to validate password for user ROOT in domain to Domain controller *. Error was NT_STATUS_NO_SUCH_USER. I have added this samba server as a member server of CSEENTDOMAIN and after that when I run cupsaddsmb for automatic driver downloads, I get above errors. Any suggestions?? How do I remove samba server from a domain, after I have added it using smbpasswd -j domain?? Shanti On Thu, 2003-06-19 at 06:16, Kurt Pfeifle wrote: [Samba] cupsaddsmb NT_STATUS_NO_SUCH_DEVICE Shanti Katta katta at csee.wvu.edu Tue Jun 17 21:01:43 GMT 2003 Hello, I am using cups-1.1.19final-1.deb and samba-2.2.3a. When I was working with cups-1.1.15 before, cupsaddsmb worked fine, but now with cups-1.1.19 it gives me: Running command: smbclient //localhost/print\$ -N -U'root%secret?' -c 'mkdir WIN40;put /var/spool/cups/tmp/3eef829eea1b8 WIN40/ps948esb.PPD;put /usr/share/cups/drivers/ADFONTS.MFM [] putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (10909.1 kb/s) (average 16587.7 kb/s) /usr/share/cups/drivers/PSMON.DLL does not exist Have you investigated this line? Running command: rpcclient localhost -N -U'root%secret?' -c 'adddriver [] result was NT_STATUS_NO_SUCH_DEVICE [] I checked the permissions on /var/spool/samba and other related directories, but couldn't resolve the error for 2 days now. Any help is highly appreciated. Shanti Cheers, Kurt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb NT_STATUS_NO_SUCH_DEVICE
Shanti Katta katta at csee.wvu.edu Thu Jun 19 18:38:09 GMT 2003 After adding PSMON.DLL, *Where* did you add it? Sorry, your problem description is very scarse and non-scientific. Please give the chapters 6.7., 6.8., 7.10., 7.11. and 8.5. of the PDF- or HTML-document on http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/ a try. It could hardly be more verbose. Also, you have been adviced to upgrade to a recent Samba version. I'd take that serious -- the printing and printer driver up- and download code has improved a lot since the days of 2.2.3a. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb NT_STATUS_NO_SUCH_DEVICE
Kurt Pfeifle wrote: Shanti Katta katta at csee.wvu.edu Thu Jun 19 18:38:09 GMT 2003 After adding PSMON.DLL, *Where* did you add it? Sorry, your problem description is very scarse and non-scientific. Please give the chapters 6.7., 6.8., 7.10., 7.11. and 8.5. of the PDF- or HTML-document on http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/ a try. It could hardly be more verbose. Also, you have been adviced to upgrade to a recent Samba version. I'd take that serious -- the printing and printer driver up- and download code has improved a lot since the days of 2.2.3a. Sorry, Shanti, the above answer is not appropriate to *you*. I disturbed this with a mail to another person, who wrote me in private to get advice on another NT_STATUS_NO_SUCH_USER problem. Cheers, Kurt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb NT_STATUS_NO_SUCH_DEVICE
Hello, I am using cups-1.1.19final-1.deb and samba-2.2.3a. When I was working with cups-1.1.15 before, cupsaddsmb worked fine, but now with cups-1.1.19 it gives me: Running command: smbclient //localhost/print\$ -N -U'root%secret?' -c 'mkdir WIN40;put /var/spool/cups/tmp/3eef829eea1b8 WIN40/ps948esb.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=157.182.194.119 bcast=157.182.194.255 nmask=255.255.255.0 Domain=[CSEENTDOMAIN] OS=[Unix] Server=[Samba 2.2.3a-12.3 for Debian] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40 putting file /var/spool/cups/tmp/3eef829eea1b8 as \WIN40/ps948esb.PPD (8308.6 kb/s) (average 8308.8 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (18515.1 kb/s) (average 15963.6 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (18806.2 kb/s) (average 17514.2 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (14705.4 kb/s) (average 17227.6 kb/s) putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (6588.1 kb/s) (average 16810.4 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (10909.1 kb/s) (average 16587.7 kb/s) /usr/share/cups/drivers/PSMON.DLL does not exist Running command: rpcclient localhost -N -U'root%secret?' -c 'adddriver Windows 4.0 ps948esb:ADOBEPS4.DRV:ps948esb.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,ps948esb.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL' session setup ok Domain=[CSEENTDOMAIN] OS=[Unix] Server=[Samba 2.2.3a-12.3 for Debian] cmd = adddriver Windows 4.0 ps948esb:ADOBEPS4.DRV:ps948esb.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,ps948esb.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL adddriver Windows 4.0 ps948esb:ADOBEPS4.DRV:ps948esb.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV,ps948esb.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL result was NT_STATUS_NO_SUCH_DEVICE Running command: rpcclient localhost -N -U'root%secret?' -c 'setdriver ps948esb ps948esb' session setup ok Domain=[CSEENTDOMAIN] OS=[Unix] Server=[Samba 2.2.3a-12.3 for Debian] cmd = setdriver ps948esb ps948esb setdriver ps948esb ps948esb result was NT code 0xc709 I checked the permissions on /var/spool/samba and other related directories, but couldn't resolve the error for 2 days now. Any help is highly appreciated. Shanti -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb -v, Warning: PPD file not found?!
Hello all, I am running a Debian testing/unstable system with samba 2.2.3a-6 and cupsys 1.1.15-4 as a member server in a samba domain. I have used CUPS to add a networked HP8100N printer and it works fine locally, but I'm having difficulty adding it to samba for Win98 domain clients to use. I ran cupsaddsmb to add the printer and drivers to samba, but it cannot find the PPD file... where is it looking for this to be??? [EMAIL PROTECTED]:/etc/samba/drivers# cupsaddsmb -a Warning: No PPD file for printer HP8100N! [EMAIL PROTECTED]:/etc/samba/drivers# cupsaddsmb -v HP8100N Warning: No PPD file for printer HP8100N! I have the HP8100N.PPD (generated by CUPS-o-matic) file placed in /usr/share/cups/drivers, /etc/cups/ppd, /etc/samba/drivers, /etc/samba/drivers/WIN40, /etc/samba/drivers/W32X86 ... please help if you can, I have many more questions, but I'd like to first get past this minor one first... where is it looking for the PPD? peace Brian -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb -v, Warning: PPD file not found?!
bwiese bwiese at cotse.com wrote on Samba-Digest: Sat Mar 29 14:40:38 GMT 2003 Hello all, I am running a Debian testing/unstable system with samba 2.2.3a-6 and cupsys 1.1.15-4 as a member server in a samba domain. Hi Brian, these are rather old versions of CUPS and Samba. Both have seen a lot of improvements since then -- especially regarding printer driver downloads to Win clients. I'd suggest you upgrade to Samba-2.2.8 and CUPS-1.1.18 (or 1.1.19 which may be released soon). I have used CUPS to add a networked HP8100N printer and it works fine locally, but I'm having difficulty adding it to samba for Win98 domain clients to use. I ran cupsaddsmb to add the printer and drivers to samba, but it cannot find the PPD file... where is it looking for this to be??? root at WS-072:/etc/samba/drivers# cupsaddsmb -a Warning: No PPD file for printer HP8100N! root at WS-072:/etc/samba/drivers# cupsaddsmb -v HP8100N Warning: No PPD file for printer HP8100N! I have the HP8100N.PPD (generated by CUPS-o-matic) Oh dear! This is a PostScript printer!! Please -- never, ever use CUPS-O-Matic PPDs with a PostScript printer! For PS printers use the PPD provided by the vendor. For the HP8100N you can find it here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/lpr/ppds/hp/HP_LaserJet_8100_Series.ppd?rev=1.1.1.1content-type=text/plain CUPS-O-Matic is now deprecated, even for non-PS printers. There is now the new PPD-O-Matic online generator on the Linuxprinting.org website. This one creates Adobe-spec compliant PPDs and doesn't require the cruel Perl hacks inside the PPD. (It also requires the new foomatic-rip ghostscript-wrapper script to be found here: http://www.linuxprinting.org/foomatic2.9/download.cgi?filename=foomatic-ripshow=0 file placed in /usr/share/cups/drivers, /etc/cups/ppd, /etc/samba/drivers, /etc/samba/drivers/WIN40, /etc/samba/drivers/W32X86 ... The PPD should be in /etc/cups/ppd/ and have the same name as your printer. (This is all taken care of by CUPS itself if you install the printer by one of the suggested methods: web interface or commandline: lpadmin -p hp8100n -v socket://[ip-address-of-hp8100]:9100 -E -P /path/to/downloaded/PPD Your printer should be better off than now, if set up by this :) please help if you can, I have many more questions, but I'd like to first get past this minor one first... where is it looking for the PPD? It is looking for the PPD in /etc/cups/ppd/[printername].ppd. However, it is not using file system commands to retrieve it, but it is using IPP calls (so that it also works across the network). I'll try to answer a few of your questions in advance, since I am writing up some docu anyway just now. What follows is copy of the description about the cupsaddsmb inner workings as I posted to the kdeprint mailing list a few months ago: ### Original Message From: Kurt Pfeifle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Understanding the export printer driver feature Date: Sat, 25 Jan 2003 23:58:10 +0100 [] OK, I've now got a copy of all the files in the list, but am having a slight problemw ith the export bit. In my case I'm running cups samba on an old P150, and am running KDE on my laptop. Does KDEPrint require that the wizard and cups/samba servers be running on the same system? If not, where do I put the files on my laptop so that KDEPrint will find them to export them? I don't think CUPS server must be running, No -- cupsd *must* be running too; but not necessarily on the same system. In the case of the KDE Export Driver Wizard on the laptop, it only needs the CUPS and Samba client parts of the programs installed. [I bet Michael knows this, because his KDEPrint Wizards work ;-) but his remarks might not be understood fully because of their brevity...] NOTE, that there could be not just 2, but 3 different hosts participating in the execution of the command(s) [or even 4, if you count the printing Win clients too]: * the one where cupsaddsmb is executed (which at least needs CUPS client commands and Samba client commands installed); * the CUPS server with the actual printer (and a Ghostscript or other CUPS driver) -- specified with -h cupsservername (CUPS server needs *not* Samba installed too); * the Samba server which offers the (PS-) Win driver for download from its [print$]-share -- specified with -H sambaservername (*this* Samba server doesn't necessarily require a CUPS installation). If you don't give -h or -H options it is assumed that everything concerns localhost only. but samba server should be running On the notebook you don't necessarily need a Samba *daemon* running... as cupsaddsmb (and KDEPrint) uses smbclient and rpcclient are used internally. Before smbclient and rpcclient are doing their work, cupsaddsmb uses IPP calls to retrieve the real PPD for the printer (from
RE: [Samba] cupsaddsmb - why the heck can'tIgetrpcclient-addprintertowork?
You don't even need to unzip the file. Just do rpm -ta cups-1.18.tar.gz Wow ... good to know Sounds really good, but I ran it and got: error: File not found: /var/tmp/cups-root/etc/pam.d error: File not found by glob: /var/tmp/cups-root/etc/pam.d/* With locate pam.d | grep cups I found: /etc/pam.d/cups so I did mkdir /var/tmp/cups-root/etc/pam.d; cp -r /etc/pam.d/cups /var/tmp/cups-root/etc/pam.d but when I reran rpm -ta cups-1.18.tar.gz it came up with the same error (I guess it deleted the existing /var/tmp/cups-root) I'm working on debugging it, but does anyone have tips? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb - why the heck can't I getrpcclient-addprinterto work?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Johnson wrote: hi Brian, cups-1.1.14-15.2 This is your problem. Update to cups 1.1.18 and it will work like a charm. Had the same problem last week... *g* P.S.: This list is indeed _very_ helpfull! Thanks a lot! Cheers Nicki - -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77 -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com Comment: Get my key at: https://www.link-m.de/pgp/n.messerschmidt.asc iQA/AwUBPlXuJes1nPm17iBDEQJcrQCg8Lk2iZtD4KIxNO2AA8BIVWCzSWMAnReK 5S+X4m621A/jVK3B/qR5bXXT =Y5J+ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb - why the heck can't I get rpcclient-addprinterto work?
[Samba] cupsaddsmb - why the heck can't I get rpcclient-addprinter to work? Brian Johnson bjohnson at jecinc.on.ca Fri Feb 21 04:16:15 GMT 2003 cups-1.1.14-15.2 Please upgrade to CUPS-1.1.18+ to make cupsaddsmb work with Samba-2.2.7a+ Please stick to the settings suggested in man cupsaddsmb, if your own ideas don't work. samba-2.2.7-1.7.3 Educate me please ... I can't... ;-) man rpcclient shows: setdriver printername drivername - Execute a SetPrinter() command to update the printer driver associated with an installed printer. The printer driver must already be correctly installed on the print server. See also the enumprinters and enumdrivers commands for obtaining a list of of installed printers and drivers. This sounds like the printer must already be installed - how is that done if not via addprinter? The setdriver command is meant to associate a different driver to a printer. The members of the driver/printer pair to be chosen must be mapping to the lists of drivers and printers enumerated by the enumdrivers and enumprinters commands. Currently, if I use enumprinters and enumdrivers (without a level setting), I get a listing of installed drivers and installed printers. If I run setdriver for each of the printer/driver pairs, will it work? If you didn't get an error message, it should work. rpcclient -c enumprinters 2 should list the new driver after the fact. To get the clients to work with a new driver (if it had one already), you will have to delete the printer first there (my experience). After that, *you* *will* *have* *to* *delete* *the* *old* *driver* *too* *!* [To do this fast, right-click on the *background* of the printers folder, select server properties and hangle yourself to the tab/menu/dialog (not sure if it is the same in Win NT) to remove the driver files in question. Only then will the registry entries be cleansed. If you don't do that, there is the danger, that Windows will re-install the *old* drivers with your second attempt.] I just did it but don't have a windows client to test it against until tomorrow (I'm connected remotely via a ssh terminal) Please tell us how it works out. Kurt Pfeifle (kpfeifle at danka.de) wrote*: Date: Thu, 20 Feb 2003 20:11:21 + From: Brian Johnson bjohnson at jecinc.on.ca To: samba at lists.samba.org Subject: [Samba] cupsaddsmb - why the heck can't I get rpcclient-addprinter to work? Message-ID: 20030220.57L.51223600 at 192.168.0.1 Content-Type: text/plain;charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: list Message: 39 I can't seem to get the rpcclient-addprinter to work - grr Which versions of software are you using? Samba, CUPS? Which OS? It looks like the drivers files are copied correctly and the NT drivers are added correctly but the addprinter command says it's unsuccessful! cupsaddsmb - why the heck can't I get rpcclient-addprinter to work? Maybe because your CUPS/cupsaddsmb version is too old ? The addprinter rpcclient command formerly used by cupsaddsmb has long been replaced by the setdriver command... Cheers, Kurt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] cupsaddsmb - why the heck can't Igetrpcclient-addprinterto work?
Any idea where I can find a REdHat7.3 rpm for 1.1.18? I can't find one anywhere -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nicki Messerschmidt, Linksystem Muenchen GmbH Sent: Friday, February 21, 2003 05:15 To: Brian Johnson; [EMAIL PROTECTED] Subject: Re: [Samba] cupsaddsmb - why the heck can't I getrpcclient-addprinterto work? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Johnson wrote: hi Brian, cups-1.1.14-15.2 This is your problem. Update to cups 1.1.18 and it will work like a charm. Had the same problem last week... *g* P.S.: This list is indeed _very_ helpfull! Thanks a lot! Cheers Nicki - -- Linksystem Muenchen GmbH [EMAIL PROTECTED] Schloerstrasse 10 http://www.link-m.de 80634 Muenchen Tel. 089 / 890 518-0 We make the Net work. Fax 089 / 890 518-77 -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com Comment: Get my key at: https://www.link-m.de/pgp/n.messerschmidt.asc iQA/AwUBPlXuJes1nPm17iBDEQJcrQCg8Lk2iZtD4KIxNO2AA8BIVWCzSWMAnReK 5S+X4m621A/jVK3B/qR5bXXT =Y5J+ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] cupsaddsmb - why the heck can't Igetrpcclient-addprinterto work?
On February 21, [EMAIL PROTECTED] said: Any idea where I can find a REdHat7.3 rpm for 1.1.18? I can't find one anywhere try the cups website, or build from source. Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. even when american adverts try for the oblique and wordless, they're so obvious they may as well put the logo on a fish and slap you with it. - AjD -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] cupsaddsmb - why the heck can'tIgetrpcclient-addprinterto work?
Any idea where I can find a REdHat7.3 rpm for 1.1.18? I can't find one anywhere try the cups website, Hmm ... couldn't seem to find it on the cups site (google couldn't either) or build from source. I'm a little nervous about building too many packages from source. I have a few and I wonder what will happen when I try to upgrade the server to a newer version of RH (that uses a newer version of glibc) I've got a feeling that I will have to recompile all of those compiled packages and I don't know if my users will like to wait while I do that (we're a small LAN but my users like to have working tools). IMO sticking to some kind of package management system should help smooth upgrades ... the problem is that I have to wait for the packages or figure out how to make them myself What are your opinions on this strategy? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] cupsaddsmb - why the heck can'tIgetrpcclient-addprinterto work?
On February 21, [EMAIL PROTECTED] said: Hmm ... couldn't seem to find it on the cups site (google couldn't either) It's the first hit on google. I've no idea what you're trying to search for. http://www.google.com/search?q=cups What are your opinions on this strategy? If you don't build an up-to-date cups, you won't have a working cups-based printing system with Samba. Sure, you'll have to be careful when upgrading, but really. That's a given when you're upgrading, regardless of whether you built from source or not. It ain't rocket science. Waider. -- We are experiencing MVS processor spin loops, the programs are running while holding a disabled CPU. This is causing XCF communication delays to the point where we are losing VTAM RTP routing, are suffering OSPF adjacency failures on TCP/IP dynamic routing and MIM VCF failures. - Reported via Slashdot -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] cupsaddsmb - why the heck can'tIgetrpcclient-addprinterto work?
-[ Brian ([EMAIL PROTECTED]) wrote on 2/21/2003 10:47 AM -0500 ]- I'm a little nervous about building too many packages from source. I have a few and I wonder what will happen when I try to upgrade the server to a newer version of RH (that uses a newer version of glibc) I've got a feeling that I will have to recompile all of those compiled packages and I don't know if my users will like to wait while I do that (we're a small LAN but my users like to have working tools). IMO sticking to some kind of package management system should help smooth upgrades ... the problem is that I have to wait for the packages or figure out how to make them myself What are your opinions on this strategy? If you download the cups source and unzip it, you will find a file called cups.spec in the top level dir of the source. You can pass the spec file to rpm (or rpmbuild on newer redhat systems) and it will create an rpm for you out of the dowloaded source files. Makes it easy to have your own compiled app but still get to use package management. Yes, you may have to recompile after major system library changes, but it is relatively straightforward. Good luck. and thanks to the cups maintainers who provide .spec files --Ben-- Ben Griffith [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] cupsaddsmb - why the heck can'tIgetrpcclient-addprinterto work?
On February 21, [EMAIL PROTECTED] said: If you download the cups source and unzip it, you will find a file called cups.spec in the top level dir of the source. You can pass the spec file to rpm (or rpmbuild on newer redhat systems) and it will create an rpm for you out of the dowloaded source files. You don't even need to unzip the file. Just do rpm -ta cups-1.18.tar.gz Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. AjD feels frustrated in his attempts to establish the delinitations of horror in puppy-burying. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb - why the heck can't I getrpcclient-addprinter to work?
Date: Thu, 20 Feb 2003 20:11:21 + From: Brian Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Samba] cupsaddsmb - why the heck can't I get rpcclient-addprinter to work? Message-ID: [EMAIL PROTECTED] Content-Type: text/plain;charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: list Message: 39 I can't seem to get the rpcclient-addprinter to work - grr Which versions of software are you using? Samba, CUPS? Which OS? It looks like the drivers files are copied correctly and the NT drivers are added correctly but the addprinter command says it's unsuccessful! cupsaddsmb - why the heck can't I get rpcclient-addprinter to work? Maybe because your CUPS/cupsaddsmb version is too old ? The addprinter rpcclient command formerly used by cupsaddsmb has long been replaced by the setdriver command... Cheers, Kurt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] cupsaddsmb - why the heck can't I getrpcclient-addprinter to work?
cups-1.1.14-15.2 samba-2.2.7-1.7.3 Educate me please ... man rpcclient shows: setdriver printername drivername - Execute a SetPrinter() command to update the printer driver associated with an installed printer. The printer driver must already be correctly installed on the print server. See also the enumprinters and enumdrivers commands for obtaining a list of of installed printers and drivers. This sounds like the printer must already be installed - how is that done if not via addprinter? Currently, if I use enumprinters and enumdrivers (without a level setting), I get a listing of installed drivers and installed printers. If I run setdriver for each of the printer/driver pairs, will it work? I just did it but don't have a windows client to test it against until tomorrow (I'm connected remotely via a ssh terminal) Kurt Pfeifle ([EMAIL PROTECTED]) wrote*: Date: Thu, 20 Feb 2003 20:11:21 + From: Brian Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Samba] cupsaddsmb - why the heck can't I get rpcclient-addprinter to work? Message-ID: [EMAIL PROTECTED] Content-Type: text/plain;charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: list Message: 39 I can't seem to get the rpcclient-addprinter to work - grr Which versions of software are you using? Samba, CUPS? Which OS? It looks like the drivers files are copied correctly and the NT drivers are added correctly but the addprinter command says it's unsuccessful! cupsaddsmb - why the heck can't I get rpcclient-addprinter to work? Maybe because your CUPS/cupsaddsmb version is too old ? The addprinter rpcclient command formerly used by cupsaddsmb has long been replaced by the setdriver command... Cheers, Kurt -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb failure
When running the cupsaddsmb command, I get the following: Since I am running as root, what do I not have access to and why? linuxi:~ # cupsaddsmb -v -U root im_hp4 Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%linux' -c 'mkdir W32X86;put /var/spool/cups/tmp/3ddd2e78aaf79 W32X86/im_hp4.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' added interface ip=172.16.14.101 bcast=172.16.14.255 nmask=255.255.255.0 Domain=[ABCBSNET] OS=[Unix] Server=[Samba 2.2.6] ERRSRV - ERRaccess (The requester does not have the necessary access rights within the specified context for the requested function. The context is defined by the TID or the UID.) making remote directory \W32X86 ERRDOS - ERRnoaccess (Access denied.) opening remote file \W32X86/im_hp4.PPD ERRDOS - ERRnoaccess (Access denied.) opening remote file \W32X86/ADOBEPS5.DLL ERRDOS - ERRnoaccess (Access denied.) opening remote file \W32X86/ADOBEPSU.DLL ERRDOS - ERRnoaccess (Access denied.) opening remote file \W32X86/ADOBEPSU.HLP Running command: smbclient //localhost/print\$ -N -U'root%linux' -c 'mkdir WIN40;put /var/spool/cups/tmp/3ddd2e78aaf79 WIN40/im_hp4.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=172.16.14.101 bcast=172.16.14.255 nmask=255.255.255.0 Domain=[ABCBSNET] OS=[Unix] Server=[Samba 2.2.6] ERRSRV - ERRaccess (The requester does not have the necessary access rights within the specified context for the requested function. The context is defined by the TID or the UID.) making remote directory \WIN40 ERRDOS - ERRnoaccess (Access denied.) opening remote file \WIN40/im_hp4.PPD ERRDOS - ERRnoaccess (Access denied.) opening remote file \WIN40/ADFONTS.MFM ERRDOS - ERRnoaccess (Access denied.) opening remote file \WIN40/ADOBEPS4.DRV ERRDOS - ERRnoaccess (Access denied.) opening remote file \WIN40/ADOBEPS4.HLP ERRDOS - ERRnoaccess (Access denied.) opening remote file \WIN40/DEFPRTR2.PPD ERRDOS - ERRnoaccess (Access denied.) opening remote file \WIN40/ICONLIB.DLL ERRDOS - ERRnoaccess (Access denied.) opening remote file \WIN40/PSMON.DLL Running command: rpcclient localhost -N -U'root%linux' -c 'adddriver Windows NT x86 im_hp4:ADOBEPS5.DLL:im_hp4.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL' session setup ok Domain=[ABCBSNET] OS=[Unix] Server=[Samba 2.2.6] result was NT_STATUS_ACCESS_VIOLATION Running command: rpcclient localhost -N -U'root%linux' -c 'adddriver Windows 4.0 im_hp4:ADOBEPS4.DRV:im_hp4.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM, DEFPRTR2.PPD,ICONLIB.DLL' session setup ok Domain=[ABCBSNET] OS=[Unix] Server=[Samba 2.2.6] result was NT_STATUS_NOT_IMPLEMENTED Running command: rpcclient localhost -N -U'root%linux' -c 'setdriver im_hp4 im_hp4' session setup ok Domain=[ABCBSNET] OS=[Unix] Server=[Samba 2.2.6] SetPrinter call failed! result was NT_STATUS_ACCESS_VIOLATION Any help would be appreciated. Glen Crowley -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
AW: [Samba] cupsaddsmb: cli_pipe: return critical error. Error was SUCCESS - 0
Okay... I found out that rpcclient needs the domainname to work properly (but smbclient doesnt need it). cupsaddsmb -v -U DOMAIN//root -a runs without any error... Bye M. -- PAION GmbH Forschungszentrum Berlin Marco Horstmann - IT Systems Administrator Tegeler Weg 33 - 10589 Berlin, Germany Tel. +49 30 34358715 - Fax +49 30 34358733 [EMAIL PROTECTED] - http://www.paion.de -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Marco Horstmann Gesendet: Mittwoch, 6. November 2002 12:02 An: [EMAIL PROTECTED] Betreff: [Samba] cupsaddsmb: cli_pipe: return critical error. Error was SUCCESS - 0 hi list, We got the following problem: We try to use samba 2.2.5 as a printserver for windoze clients (samba 2.2.5 on RH linux 8 w/ CUPS 1.1.15). CUPS works w/o any problems, but when we try to generate the drivers for the windoze clients (by using cupsaddsmb), we get the following error: cli_pipe: return critical error. Error was SUCCESS - 0 result was NT_STATUS_UNSUCCESSFUL Does anybody know this problem, and can point me to a solution? Thanx in advance. Marco PS: Here's the complete output of cupsaddsmb -v -U root phaser: [stdout] added interface ip=192.168.0.12 bcast=192.168.0.255 nmask=255.255.255.0 Domain=[PAION-BERLIN] OS=[Unix] Server=[Samba 2.2.5] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/3dc809fc30b6f as \W32X86/phaser.PPD (2189.4 kb/s) (average 2189.5 kb/s) putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (20312.4 kb/s) (average 14649.0 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (15115.3 kb/s) (average 14783.8 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (6549.6 kb/s) (average 14269.1 kb/s) added interface ip=192.168.0.12 bcast=192.168.0.255 nmask=255.255.255.0 Domain=[PAION-BERLIN] OS=[Unix] Server=[Samba 2.2.5] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40 putting file /var/spool/cups/tmp/3dc809fc30b6f as \WIN40/phaser.PPD (1990.4 kb/s) (average 1990.4 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (20817.8 kb/s) (average 15367.8 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (20109.1 kb/s) (average 18325.3 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (17529.0 kb/s) (average 18234.5 kb/s) putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (4392.1 kb/s) (average 17879.6 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (14419.7 kb/s) (average 17658.1 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (11199.8 kb/s) (average 17409.8 kb/s) cmd = adddriver Windows NT x86 phaser:ADOBEPS5.DLL:phaser.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL :RAW:NULL cli_pipe: return critical error. Error was SUCCESS - 0 result was NT_STATUS_UNSUCCESSFUL cmd = adddriver Windows 4.0 phaser:ADOBEPS4.DRV:phaser.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA W:ADFONTS. MFM, DEFPRTR2.PPD,ICONLIB.DLL cli_pipe: return critical error. Error was SUCCESS - 0 result was NT_STATUS_UNSUCCESSFUL cmd = setdriver phaser phaser Succesfully set phaser to driver phaser. Running command: smbclient file://192.168.0.12/print\$ -N -U'root%SECRET' -c 'mkdir W32X86;put /var/spool/cups/tmp/3dc809fc30b6f W32X86/phaser.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' Running command: smbclient file://192.168.0.12/print\$ -N -U'root%SECRET' -c 'mkdir WIN40;put /var/spool/cups/tmp/3dc809fc30b6f WIN40/phaser.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;' Running command: rpcclient 192.168.0.12 -N -U'root%SECRET' -c 'adddriver Windows NT x86 phaser:ADOBEPS5.DLL:phaser.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL :RAW:NULL ' Running command: rpcclient 192.168.0.12 -N -U'root%SECRET' -c 'adddriver Windows 4.0 phaser:ADOBEPS4.DRV:phaser.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA W:ADFONTS. MFM, DEFPRTR2.PPD,ICONLIB.DLL' Running command: rpcclient 192.168.0.12 -N -U'root%SECRET' -c 'setdriver phaser phaser' [end stdout] Now the smbd.log (debug level 10): [2002/11/05 19:37:39, 2] param/loadparm.c:do_section(3042) Processing section [phaser] doing parameter printer = phaser doing parameter browseable = yes doing parameter printable = yes
[Samba] cupsaddsmb failure
When running the cupsaddsmb command, I get the following: Since I am running as root, what do I not have access to and why? Any help would be appreciated. Glen Crowley ...OLE_Obj... -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb and samba
Hello, I tried to find a way to having the setup of cups printing working for windows client. I end up now with cupsaddsmb -v -a -U root finishing by Printer Driver mesange successfully installed. Running command: rpcclient localhost -N -U'root%' -c 'setdriver mesange mesange' cmd = setdriver mesange mesange result was NT_STATUS_UNSUCCESSFUL My setup is Redhat 8.0 Samba 2.2.6-2 (rpm) (recent download) cups 1.1.15-10 (rpm) 1- Filesharing works ok but not the printer 2- Native linux cups printing works ok 3- For sercurity = domain, even with joined to domain, cupsaddsmb keeps asking for root (smb) password. In fact, the error is rise with « rpcclient localhost -N -U root... » while a smbclient -L localhost -U root will work. 4-For sercurity= server, cupsaddsmb transfert the adobe drivers to /etc/samba/drivers almost work. But end with cmd = setdriver mesange mesange result was NT_STATUS_UNSUCCESSFUL The smb.conf is given above this letter Any idea? Or there is there a work around to cupsaddsmb for cups printing wiht samba Is there a versions of « cups »- « samba »- «redhat or debian » demonstrated to work. Thanks for your help Laurent /etc/samba/smb.conf [global] workgroup = IMAGERIE server string = Serveur Samba %v sur %L hosts allow = 192.168.1. 127. load printers = yes printcap name = cups printing = cups log file = /var/log/samba/log.%m max log size = 50 security = server password server = TURBO encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 interfaces = 192.168.1.231/24 remote announce = 192.168.1.255 dns proxy = no [homes] comment = Home Directories browseable = no writable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no public = yes guest ok = no writable = no printable = yes printer admin = root [print$] comment = Printer Drivers path = /etc/samba/drivers browseable = yes guest ok = no read only = yes -- Laurent Hubert Administrateur système Centre d'Imagerie Métabolique et Fonctionnelle CRC, CHUS Université de Sherbrooke 3001, 12e Avenue Nord Sherbrooke, Québec Canada J1H 5N4 tél : 819 346 1110 poste 11836 Télécopieur : 819 820 6490 Courriel : [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] cupsaddsmb rpcclient error
I am running samba 2.2.6 and cups 1.1.16. I can't get cupsaddsmb to complete successfully. I'm at an end here, I can't think of anything else to try after 2 weeks of searching the web. It copies the drivers to the print$ share directory, however the SetPrinter command fails on the rpcclient command and it returns with an NT_STATUS_UNSUCCESSFUL error. At the SetPrinter failure, it returns an WERR_ACCESS_DENIED, but I'm not sure what permissions it's looking for or where it wants them set. I'm attaching the results of rpcclient with debug level 100. Serverzone is 14400 Adding chars 0x0 0x0 (l-u = False) (u-l = False) Adding chars 0x21 0x0 (l-u = False) (u-l = False) Adding chars 0x23 0x0 (l-u = False) (u-l = False) Adding chars 0x24 0x0 (l-u = False) (u-l = False) Adding chars 0x25 0x0 (l-u = False) (u-l = False) Adding chars 0x26 0x0 (l-u = False) (u-l = False) Adding chars 0x27 0x0 (l-u = False) (u-l = False) Adding chars 0x28 0x0 (l-u = False) (u-l = False) Adding chars 0x29 0x0 (l-u = False) (u-l = False) Adding chars 0x2d 0x0 (l-u = False) (u-l = False) Adding chars 0x2e 0x0 (l-u = False) (u-l = False) Adding chars 0x30 0x0 (l-u = False) (u-l = False) Adding chars 0x31 0x0 (l-u = False) (u-l = False) Adding chars 0x32 0x0 (l-u = False) (u-l = False) Adding chars 0x33 0x0 (l-u = False) (u-l = False) Adding chars 0x34 0x0 (l-u = False) (u-l = False) Adding chars 0x35 0x0 (l-u = False) (u-l = False) Adding chars 0x36 0x0 (l-u = False) (u-l = False) Adding chars 0x37 0x0 (l-u = False) (u-l = False) Adding chars 0x38 0x0 (l-u = False) (u-l = False) Adding chars 0x39 0x0 (l-u = False) (u-l = False) Adding chars 0x40 0x0 (l-u = False) (u-l = False) Adding chars 0x41 0x0 (l-u = False) (u-l = False) Adding chars 0x42 0x0 (l-u = False) (u-l = False) Adding chars 0x43 0x0 (l-u = False) (u-l = False) Adding chars 0x44 0x0 (l-u = False) (u-l = False) Adding chars 0x45 0x0 (l-u = False) (u-l = False) Adding chars 0x46 0x0 (l-u = False) (u-l = False) Adding chars 0x47 0x0 (l-u = False) (u-l = False) Adding chars 0x48 0x0 (l-u = False) (u-l = False) Adding chars 0x49 0x0 (l-u = False) (u-l = False) Adding chars 0x4a 0x0 (l-u = False) (u-l = False) Adding chars 0x4b 0x0 (l-u = False) (u-l = False) Adding chars 0x4c 0x0 (l-u = False) (u-l = False) Adding chars 0x4d 0x0 (l-u = False) (u-l = False) Adding chars 0x4e 0x0 (l-u = False) (u-l = False) Adding chars 0x4f 0x0 (l-u = False) (u-l = False) Adding chars 0x50 0x0 (l-u = False) (u-l = False) Adding chars 0x51 0x0 (l-u = False) (u-l = False) Adding chars 0x52 0x0 (l-u = False) (u-l = False) Adding chars 0x53 0x0 (l-u = False) (u-l = False) Adding chars 0x54 0x0 (l-u = False) (u-l = False) Adding chars 0x55 0x0 (l-u = False) (u-l = False) Adding chars 0x56 0x0 (l-u = False) (u-l = False) Adding chars 0x57 0x0 (l-u = False) (u-l = False) Adding chars 0x58 0x0 (l-u = False) (u-l = False) Adding chars 0x59 0x0 (l-u = False) (u-l = False) Adding chars 0x5a 0x0 (l-u = False) (u-l = False) Adding chars 0x5e 0x0 (l-u = False) (u-l = False) Adding chars 0x5f 0x0 (l-u = False) (u-l = False) Adding chars 0x60 0x0 (l-u = False) (u-l = False) Adding chars 0x61 0x0 (l-u = False) (u-l = False) Adding chars 0x62 0x0 (l-u = False) (u-l = False) Adding chars 0x63 0x0 (l-u = False) (u-l = False) Adding chars 0x64 0x0 (l-u = False) (u-l = False) Adding chars 0x65 0x0 (l-u = False) (u-l = False) Adding chars 0x66 0x0 (l-u = False) (u-l = False) Adding chars 0x67 0x0 (l-u = False) (u-l = False) Adding chars 0x68 0x0 (l-u = False) (u-l = False) Adding chars 0x69 0x0 (l-u = False) (u-l = False) Adding chars 0x6a 0x0 (l-u = False) (u-l = False) Adding chars 0x6b 0x0 (l-u = False) (u-l = False) Adding chars 0x6c 0x0 (l-u = False) (u-l = False) Adding chars 0x6d 0x0 (l-u = False) (u-l = False) Adding chars 0x6e 0x0 (l-u = False) (u-l = False) Adding chars 0x6f 0x0 (l-u = False) (u-l = False) Adding chars 0x70 0x0 (l-u = False) (u-l = False) Adding chars 0x71 0x0 (l-u = False) (u-l = False) Adding chars 0x72 0x0 (l-u = False) (u-l = False) Adding chars 0x73 0x0 (l-u = False) (u-l = False) Adding chars 0x74 0x0 (l-u = False) (u-l = False) Adding chars 0x75 0x0 (l-u = False) (u-l = False) Adding chars 0x76 0x0 (l-u = False) (u-l = False) Adding chars 0x77 0x0 (l-u = False) (u-l = False) Adding chars 0x78 0x0 (l-u = False) (u-l = False) Adding chars 0x79 0x0 (l-u = False) (u-l = False) Adding chars 0x7a 0x0 (l-u = False) (u-l = False) Adding chars 0x7b 0x0 (l-u = False) (u-l = False) Adding chars 0x7d 0x0 (l-u = False) (u-l = False) Adding chars 0x7e 0x0 (l-u = False) (u-l = False) Initialising global parameters params.c:pm_process() - Processing configuration file /etc/samba/smb.conf Processing section [global] doing parameter workgroup = LIMBACH doing parameter netbios name = LFSPITPDC handle_netbios_name: set global_myname to: LFSPITPDC doing parameter server string = LFS Samba Server doing parameter encrypt passwords = Yes doing parameter obey pam restrictions = Yes doing parameter pam
[Samba] cupsaddsmb rpcclient error
I am running samba 2.2.6 and cups 1.1.16. I can't get cupsaddsmb to complete successfully. I'm at an end here, I can't think of anything else to try after 2 weeks of searching the web. It copies the drivers to the print$ share directory, however the SetPrinter command fails on the rpcclient command and it returns with an NT_STATUS_UNSUCCESSFUL error. At the SetPrinter failure, it returns an WERR_ACCESS_DENIED, but I'm not sure what permissions it's looking for or where it wants them set. I'm attaching the results of rpcclient with debug level 100. PS I'm snipping alot of this since it seems like the list won't let a long list in. You can see the whole log at http://www.essensys.com/~dan/rpcclient.txt Serverzone is 14400 [snip] Initialising global parameters params.c:pm_process() - Processing configuration file /etc/samba/smb.conf Processing section [global] doing parameter workgroup = LIMBACH doing parameter netbios name = LFSPITPDC handle_netbios_name: set global_myname to: LFSPITPDC doing parameter server string = LFS Samba Server doing parameter encrypt passwords = Yes doing parameter obey pam restrictions = Yes doing parameter pam password change = Yes doing parameter passwd program = /usr/bin/passwd %u doing parameter passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* doing parameter unix password sync = Yes doing parameter log file = /var/log/samba/%m.log doing parameter max log size = 0 doing parameter time server = Yes doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 doing parameter addprinter command = /usr/sbin/cupsaddsmb doing parameter domain admin group = ntadmin doing parameter add user script = /usr/local/bin/newMachine.sh %u doing parameter logon path = \\172.24.150.210\profiles\%U doing parameter logon drive = I: doing parameter logon home = \\172.24.150.210\%U doing parameter domain logons = Yes doing parameter os level = 64 doing parameter preferred master = Yes doing parameter domain master = Yes doing parameter dns proxy = No doing parameter wins server = 192.168.110.163 wins_srv_load_list(): Building WINS server list: 192.168.110.163, 1 WINS server listed. doing parameter ldap port = 389 doing parameter ldap suffix = ou=smb, o=limbach, c=us doing parameter ldap admin dn = uid=manager, o=limbach, c=us doing parameter ldap ssl = no doing parameter admin users = ntadmin doing parameter printer admin = ntadmin doing parameter hosts allow = 172.24.150. 172.24.151. 127.0.0.1 172.29.175. 172.24.155. 172.24.154. 172.29.140. doing parameter printcap name = /etc/printcap doing parameter printing = cups doing parameter print command = /usr/bin/lpr -r -P%p %s doing parameter lpq command = /usr/bin/lpq -P%p doing parameter lprm command = /usr/bin/lprm -P%p %j pm_process() returned Yes lp_servicenumber: couldn't find homes set_server_role: ROLE_DOMAIN_PDC codepage_initialise: client code page = 850 load_client_codepage: loading codepage 850. [snip] load_dos_unicode_map: 850 load_unicode_map: loading unicode map for codepage 850. load_unix_unicode_map: ISO8859-1 (init_done=0, override=0) load_unicode_map: loading unicode map for codepage ISO8859-1. added interface ip=172.24.150.210 bcast=172.24.151.255 nmask=255.255.254.0 resolve_lmhosts: Attempting lmhosts lookup for name localhost0x20 getlmhostsent: lmhost entry: 127.0.0.1 localhost internal_resolve_name: returning 1 addresses: 127.0.0.1 Connecting to host=localhost share=IPC$ Connecting to 127.0.0.1 at port 445 error connecting to 127.0.0.1:445 (Connection refused) Connecting to 127.0.0.1 at port 139 socket option SO_KEEPALIVE = 0 socket option SO_REUSEADDR = 0 socket option SO_BROADCAST = 0 socket option TCP_NODELAY = 1 socket option IPTOS_LOWDELAY = 0 socket option IPTOS_THROUGHPUT = 0 socket option SO_SNDBUF = 16384 socket option SO_RCVBUF = 16384 socket option SO_SNDLOWAT = 1 socket option SO_RCVLOWAT = 1 socket option SO_SNDTIMEO = 0 socket option SO_RCVTIMEO = 0 write_socket(3,72) write_socket(3,72) wrote 72 Sent session request [snip] [000] 04 0B DF 23 F2 0A A6 53 4C 49 4D 42 41 43 48 00 ...#...S LIMBACH. write_socket(3,134) write_socket(3,134) wrote 134 got smb length of 66 [snip] [000] 49 50 43 00 49 50 43 00 IPC.IPC. cli_init_creds: user root domain è! flgs: 0 ntlmssp_cli_flgs:0 write_socket(3,95) write_socket(3,95) wrote 95 got smb length of 103 [sni] Bind RPC Pipe[731d]: \PIPE\lsarpc Bind Abstract Syntax: [000] 78 57 34 12 34 12 CD AB EF 00 01 23 45 67 89 AB xW4.4... ...#Eg.. [010] 00 00 00 00 Bind Transfer Syntax: [000] 04 5D 88 8A EB 1C C9 11 9F E8 08 00 2B 10 48 60 .].. +.H` [010] 02 00 00 00 00 smb_io_rpc_hdr hdr major : 05 0001 minor : 00 0002 pkt_type : 0b 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007
[Samba] cupsaddsmb rpcclient error
I am running samba 2.2.6 and cups 1.1.16. I can't get cupsaddsmb to complete successfully. I'm at an end here, I can't think of anything else to try after 2 weeks of searching the web. It copies the drivers to the print$ share directory, however the SetPrinter command fails on the rpcclient command and it returns with an NT_STATUS_UNSUCCESSFUL error. At the SetPrinter failure, it returns an WERR_ACCESS_DENIED, but I'm not sure what permissions it's looking for or where it wants them set. I'm attaching the results of rpcclient with debug level 100. PS I'm snipping alot of this since it seems like the list won't allow long emails. You can see the whole log at http://www.essensys.com/~dan/rpcclient.txt Serverzone is 14400 [snip] Initialising global parameters params.c:pm_process() - Processing configuration file /etc/samba/smb.conf Processing section [global] doing parameter workgroup = LIMBACH doing parameter netbios name = LFSPITPDC handle_netbios_name: set global_myname to: LFSPITPDC doing parameter server string = LFS Samba Server doing parameter encrypt passwords = Yes doing parameter obey pam restrictions = Yes doing parameter pam password change = Yes doing parameter passwd program = /usr/bin/passwd %u doing parameter passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* doing parameter unix password sync = Yes doing parameter log file = /var/log/samba/%m.log doing parameter max log size = 0 doing parameter time server = Yes doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 doing parameter addprinter command = /usr/sbin/cupsaddsmb doing parameter domain admin group = ntadmin doing parameter add user script = /usr/local/bin/newMachine.sh %u doing parameter logon path = \\172.24.150.210\profiles\%U doing parameter logon drive = I: doing parameter logon home = \\172.24.150.210\%U doing parameter domain logons = Yes doing parameter os level = 64 doing parameter preferred master = Yes doing parameter domain master = Yes doing parameter dns proxy = No doing parameter wins server = 192.168.110.163 wins_srv_load_list(): Building WINS server list: 192.168.110.163, 1 WINS server listed. doing parameter ldap port = 389 doing parameter ldap suffix = ou=smb, o=limbach, c=us doing parameter ldap admin dn = uid=manager, o=limbach, c=us doing parameter ldap ssl = no doing parameter admin users = @ntadmin doing parameter printer admin = @ntadmin doing parameter hosts allow = 172.24.150. 172.24.151. 127.0.0.1 172.29.175. 172.24.155. 172.24.154. 172.29.140. doing parameter printcap name = /etc/printcap doing parameter printing = cups doing parameter print command = /usr/bin/lpr -r -P%p %s doing parameter lpq command = /usr/bin/lpq -P%p doing parameter lprm command = /usr/bin/lprm -P%p %j pm_process() returned Yes lp_servicenumber: couldn't find homes set_server_role: ROLE_DOMAIN_PDC codepage_initialise: client code page = 850 load_client_codepage: loading codepage 850. [snip] load_dos_unicode_map: 850 load_unicode_map: loading unicode map for codepage 850. load_unix_unicode_map: ISO8859-1 (init_done=0, override=0) load_unicode_map: loading unicode map for codepage ISO8859-1. added interface ip=172.24.150.210 bcast=172.24.151.255 nmask=255.255.254.0 resolve_lmhosts: Attempting lmhosts lookup for name localhost0x20 getlmhostsent: lmhost entry: 127.0.0.1 localhost internal_resolve_name: returning 1 addresses: 127.0.0.1 Connecting to host=localhost share=IPC$ Connecting to 127.0.0.1 at port 445 error connecting to 127.0.0.1:445 (Connection refused) Connecting to 127.0.0.1 at port 139 [snip] 18 spoolss_io_r_getprinter 18 spoolss_io_buffer 0018 ptr: 0001 001c size: 01ac 01cc needed: 01ac 01d0 status: WERR_OK 00 smb_io_printer_info_2 offset: 0194 000194 smb_io_unistr servername 0004 offset: 0168 000168 smb_io_unistr printername 0008 offset: 0154 000154 smb_io_unistr sharename 000c offset: 012e 00012e smb_io_unistr portname 0010 offset: 012c 00012c smb_io_unistr drivername 0014 offset: 0108 000108 smb_io_unistr comment 0018 offset: 0106 000106 smb_io_unistr location 001c devmode: 0020 offset: 0104 000104 smb_io_unistr sepfile 0024 offset: 00f2 f2 smb_io_unistr printprocessor 0028 offset: 00ea ea smb_io_unistr datatype 002c offset: 00e8 e8 smb_io_unistr parameters 0030 sec_desc: 1c smb_io_reldevmode devmode 001c offset: 0034 attributes: 0018 0038 priority: 0001 003c defpriority: 0001 0040 starttime: 0044 untiltime: 0048 status: 004c jobs: 0050 averageppm: 00 spoolss_io_q_setprinter 00 smb_io_pol_hnd printer handle data1: 0004 data2: 0002