Hey folks. I am trying to set up a cups/samba printer server, and I am having trouble using cupsaddsmb. I isolated the problem to a rpcclient and here is the information I gathered from the various commands. If I delete all the files in "/var/lib/samba/drivers" cupsaddsmb installs the folders and files, but doesn't move the files in to the WIN40/0 folder with the adddriver command. I am using SuSE 8.1 with samba 2.2.5 Attached are early revisions of my system configuration instructions with details on how I installed all my services. They aren't finished, but I thught they may help incase I missed something. Thanks! *-*-*-*-*-*-*-*-*-*- cupsaddsmb -*-*-*-*-*-*-*-*-*-* DvPrntSvr:/var/lib/samba # cupsaddsmb -U root -a -v Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%<password removed>' -c 'mkdir W32X86;put /var/spool/cups/tmp/3eb694ef6a9a6 W32X86/P45DEVLAB.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=158.184.44.107 bcast=158.184.45.255 nmask=255.255.254.0 Domain=[BLACKFOREST] OS=[Unix] Server=[Samba 2.2.5] putting file /var/spool/cups/tmp/3eb694ef6a9a6 as \W32X86/P45DEVLAB.PPD (11148.4 kb/s) (average 11148.6 kb/s) putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (17874.9 kb/s) (average 16403.6 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (14722.1 kb/s) (average 16034.5 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (9008.8 kb/s) (average 15707.8 kb/s) Running command: smbclient //localhost/print\$ -N -U'root%<password removed>' -c 'mkdir WIN40;put /var/spool/cups/tmp/3eb694ef6a9a6 WIN40/P45DEVLAB.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=158.184.44.107 bcast=158.184.45.255 nmask=255.255.254.0 Domain=[BLACKFOREST] OS=[Unix] Server=[Samba 2.2.5] putting file /var/spool/cups/tmp/3eb694ef6a9a6 as \WIN40/P45DEVLAB.PPD (13006.5 kb/s) (average 13006.7 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (18736.0 kb/s) (average 17781.2 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (17823.5 kb/s) (average 17809.3 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (15987.8 kb/s) (average 17625.6 kb/s) putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (6587.6 kb/s) (average 17443.2 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (14419.7 kb/s) (average 17255.7 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (13999.7 kb/s) (average 17157.8 kb/s) Running command: rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows NT x86" "P45DEVLAB:ADOBEPS5.DLL:P45DEVLAB.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' cmd = adddriver "Windows NT x86" "P45DEVLAB:ADOBEPS5.DLL:P45DEVLAB.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL" result was NT_STATUS_UNSUCCESSFUL Running command: rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows 4.0" "P45DEVLAB:ADOBEPS4.DRV:P45DEVLAB.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' cmd = adddriver "Windows 4.0" "P45DEVLAB:ADOBEPS4.DRV:P45DEVLAB.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL" result was NT_STATUS_UNSUCCESSFUL Running command: rpcclient localhost -N -U'root%<password removed>' -c 'setdriver P45DEVLAB P45DEVLAB' cmd = setdriver P45DEVLAB P45DEVLAB Succesfully set P45DEVLAB to driver P45DEVLAB. Running command: smbclient //localhost/print\$ -N -U'root%<password removed>' -c 'mkdir W32X86;put /var/spool/cups/tmp/3eb694f6e7a75 W32X86/P45DEVLAB2.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=158.184.44.107 bcast=158.184.45.255 nmask=255.255.254.0 Domain=[BLACKFOREST] OS=[Unix] Server=[Samba 2.2.5] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/3eb694f6e7a75 as \W32X86/P45DEVLAB2.PPD (13006.5 kb/s) (average 13006.7 kb/s) putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (16550.9 kb/s) (average 15906.5 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (14722.1 kb/s) (average 15652.7 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (9008.8 kb/s) (average 15350.8 kb/s) Running command: smbclient //localhost/print\$ -N -U'root%<password removed>' -c 'mkdir WIN40;put /var/spool/cups/tmp/3eb694f6e7a75 WIN40/P45DEVLAB2.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=158.184.44.107 bcast=158.184.45.255 nmask=255.255.254.0 Domain=[BLACKFOREST] OS=[Unix] Server=[Samba 2.2.5] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40 putting file /var/spool/cups/tmp/3eb694f6e7a75 as \WIN40/P45DEVLAB2.PPD (11148.4 kb/s) (average 11148.6 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (17565.0 kb/s) (average 16413.4 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (17100.9 kb/s) (average 16863.6 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (14758.0 kb/s) (average 16646.4 kb/s) putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (6587.6 kb/s) (average 16489.2 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (14419.7 kb/s) (average 16367.5 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (13999.7 kb/s) (average 16299.9 kb/s) Running command: rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows NT x86" "P45DEVLAB2:ADOBEPS5.DLL:P45DEVLAB2.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' cmd = adddriver "Windows NT x86" "P45DEVLAB2:ADOBEPS5.DLL:P45DEVLAB2.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL" result was NT_STATUS_UNSUCCESSFUL Running command: rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows 4.0" "P45DEVLAB2:ADOBEPS4.DRV:P45DEVLAB2.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' cmd = adddriver "Windows 4.0" "P45DEVLAB2:ADOBEPS4.DRV:P45DEVLAB2.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL" result was NT_STATUS_UNSUCCESSFUL Running command: rpcclient localhost -N -U'root%<password removed>' -c 'setdriver P45DEVLAB2 P45DEVLAB2' cmd = setdriver P45DEVLAB2 P45DEVLAB2 Succesfully set P45DEVLAB2 to driver P45DEVLAB2. *-*-*-*-*-*-*-*-*-*- rpcclient -*-*-*-*-*-*-*-*-*-* rpcclient $> adddriver "Windows 4.0" "P45DEVLAB2:ADOBEPS4.DRV:P45DEVLAB2.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL" size=103 smb_com=0xa2 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=1 smb_tid=1 smb_pid=2171 smb_uid=0 smb_mid=1 smt_wct=34 smb_vwv[0]=255 (0xFF) smb_vwv[1]=0 (0x0) smb_vwv[2]=4864 (0x1300) smb_vwv[3]=368 (0x170) smb_vwv[4]=0 (0x0) smb_vwv[5]=0 (0x0) smb_vwv[6]=0 (0x0) smb_vwv[7]=0 (0x0) smb_vwv[8]=0 (0x0) smb_vwv[9]=0 (0x0) smb_vwv[10]=0 (0x0) smb_vwv[11]=0 (0x0) smb_vwv[12]=0 (0x0) smb_vwv[13]=0 (0x0) smb_vwv[14]=0 (0x0) smb_vwv[15]=0 (0x0) smb_vwv[16]=0 (0x0) smb_vwv[17]=0 (0x0) smb_vwv[18]=0 (0x0) smb_vwv[19]=0 (0x0) smb_vwv[20]=0 (0x0) smb_vwv[21]=32768 (0x8000) smb_vwv[22]=0 (0x0) smb_vwv[23]=0 (0x0) smb_vwv[24]=0 (0x0) smb_vwv[25]=0 (0x0) smb_vwv[26]=0 (0x0) smb_vwv[27]=0 (0x0) smb_vwv[28]=0 (0x0) smb_vwv[29]=0 (0x0) smb_vwv[30]=0 (0x0) smb_vwv[31]=512 (0x200) smb_vwv[32]=65280 (0xFF00) smb_vwv[33]=5 (0x5) smb_bcc=0 Bind RPC Pipe[7013]: \PIPE\spoolss Bind Abstract Syntax: [000] 78 56 34 12 34 12 CD AB EF 00 01 23 45 67 89 AB xV4.4.Í« ï..#Eg.« [010] 01 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 .... 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 0b 0003 flags : 00 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0048 000a auth_len : 0000 000c call_id : 00000014 000010 smb_io_rpc_hdr_rb 0010 max_tsize: 1630 0012 max_rsize: 1630 0014 assoc_gid: 00000000 0018 num_elements: 00000001 001c context_id : 0000 001e num_syntaxes: 01 0020 data : 12345678 0024 data : 1234 0026 data : abcd 0028 data : ef 00 01 23 45 67 89 ab 0030 version: 00000001 0034 data : 8a885d04 0038 data : 1ceb 003a data : 11c9 003c data : 9f e8 08 00 2b 10 48 60 0044 version: 00000002 rpc_api_pipe: cmd:26 fnum:7013 size=146 smb_com=0x25 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=8 smb_flg2=16385 smb_tid=1 smb_pid=2171 smb_uid=0 smb_mid=1 smt_wct=16 smb_vwv[0]=0 (0x0) smb_vwv[1]=72 (0x48) smb_vwv[2]=0 (0x0) smb_vwv[3]=72 (0x48) smb_vwv[4]=0 (0x0) smb_vwv[5]=0 (0x0) smb_vwv[6]=0 (0x0) smb_vwv[7]=0 (0x0) smb_vwv[8]=0 (0x0) smb_vwv[9]=0 (0x0) smb_vwv[10]=74 (0x4A) smb_vwv[11]=72 (0x48) smb_vwv[12]=74 (0x4A) smb_vwv[13]=2 (0x2) smb_vwv[14]=38 (0x26) smb_vwv[15]=28691 (0x7013) smb_bcc=79 size=124 smb_com=0x25 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=1 smb_tid=1 smb_pid=2171 smb_uid=0 smb_mid=1 smt_wct=10 smb_vwv[0]=0 (0x0) smb_vwv[1]=68 (0x44) smb_vwv[2]=0 (0x0) smb_vwv[3]=0 (0x0) smb_vwv[4]=56 (0x38) smb_vwv[5]=0 (0x0) smb_vwv[6]=68 (0x44) smb_vwv[7]=56 (0x38) smb_vwv[8]=0 (0x0) smb_vwv[9]=0 (0x0) smb_bcc=69 size=124 smb_com=0x25 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=1 smb_tid=1 smb_pid=2171 smb_uid=0 smb_mid=1 smt_wct=10 smb_vwv[0]=0 (0x0) smb_vwv[1]=68 (0x44) smb_vwv[2]=0 (0x0) smb_vwv[3]=0 (0x0) smb_vwv[4]=56 (0x38) smb_vwv[5]=0 (0x0) smb_vwv[6]=68 (0x44) smb_vwv[7]=56 (0x38) smb_vwv[8]=0 (0x0) smb_vwv[9]=0 (0x0) smb_bcc=69 rpc_check_hdr: rdata->data_size = 68 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 0c 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0044 000a auth_len : 0000 000c call_id : 00000014 rpc_api_pipe: len left: 0 smbtrans read: 68 rpc_pipe_bind: rpc_api_pipe returned OK. 000010 smb_io_rpc_hdr_ba 0010 max_tsize: 1630 0012 max_rsize: 1630 0014 assoc_gid: 000053f0 0018 len: 000e 001a str: \PIPE\spoolss. 0028 num_results: 01 002c result : 0000 002e reason : 0000 0030 data : 8a885d04 0034 data : 1ceb 0036 data : 11c9 0038 data : 9f e8 08 00 2b 10 48 60 0040 version: 00000002 bind_rpc_pipe: server pipe_name found: \PIPE\spoolss bind_rpc_pipe: accepted! make_spoolss_q_addprinterdriver 000000 spoolss_io_q_addprinterdriver 0000 server_name_ptr: 00000001 0004 uni_max_len: 0000000c 0008 undoc : 00000000 000c uni_str_len: 0000000c 0010 buffer : \.\.L.O.C.A.L.H.O.S.T... 0028 info_level: 00000003 002c level: 00000003 0030 ptr: 00000001 0034 cversion: 00000000 0038 name: 00000001 003c environment: 00000001 0040 driverpath: 00000001 0044 datafile: 00000001 0048 configfile: 00000000 004c helpfile: 00000001 0050 monitorname: 00000001 0054 defaultdatatype: 00000001 0058 dependentfilessize: 00000026 005c dependentfiles: 00000001 0060 uni_max_len: 0000000b 0064 undoc : 00000000 0068 uni_str_len: 0000000b 006c buffer : P.4.5.D.E.V.L.A.B.2... 0084 uni_max_len: 0000000c 0088 undoc : 00000000 008c uni_str_len: 0000000c 0090 buffer : W.i.n.d.o.w.s. .4...0... 00a8 uni_max_len: 0000000d 00ac undoc : 00000000 00b0 uni_str_len: 0000000d 00b4 buffer : A.D.O.B.E.P.S.4...D.R.V... 00d0 uni_max_len: 0000000f 00d4 undoc : 00000000 00d8 uni_str_len: 0000000f 00dc buffer : P.4.5.D.E.V.L.A.B.2...P.P.D... 00fc uni_max_len: 0000000d 0100 undoc : 00000000 0104 uni_str_len: 0000000d 0108 buffer : A.D.O.B.E.P.S.4...H.L.P... 0124 uni_max_len: 0000000a 0128 undoc : 00000000 012c uni_str_len: 0000000a 0130 buffer : P.S.M.O.N...D.L.L... 0144 uni_max_len: 00000004 0148 undoc : 00000000 014c uni_str_len: 00000004 0150 buffer : R.A.W... 0158 buf_len: 00000026 015c buffer: A.D.F.O.N.T.S...M.F.M...D.E.F.P.R.T.R.2...P.P.D...I.C.O.N.L.I.B...D.L.L..... create_rpc_request: opnum: 0x9 data_len: 0x1c0 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 01c0 000a auth_len : 0000 000c call_id : 00000015 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 000001b0 0014 context_id: 0000 0016 opnum : 0009 rpc_api_pipe: cmd:26 fnum:7013 size=522 smb_com=0x25 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=8 smb_flg2=16385 smb_tid=1 smb_pid=2171 smb_uid=0 smb_mid=1 smt_wct=16 smb_vwv[0]=0 (0x0) smb_vwv[1]=448 (0x1C0) smb_vwv[2]=0 (0x0) smb_vwv[3]=448 (0x1C0) smb_vwv[4]=0 (0x0) smb_vwv[5]=0 (0x0) smb_vwv[6]=0 (0x0) smb_vwv[7]=0 (0x0) smb_vwv[8]=0 (0x0) smb_vwv[9]=0 (0x0) smb_vwv[10]=74 (0x4A) smb_vwv[11]=448 (0x1C0) smb_vwv[12]=74 (0x4A) smb_vwv[13]=2 (0x2) smb_vwv[14]=38 (0x26) smb_vwv[15]=28691 (0x7013) smb_bcc=455 size=84 smb_com=0x25 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=1 smb_tid=1 smb_pid=2171 smb_uid=0 smb_mid=1 smt_wct=10 smb_vwv[0]=0 (0x0) smb_vwv[1]=28 (0x1C) smb_vwv[2]=0 (0x0) smb_vwv[3]=0 (0x0) smb_vwv[4]=56 (0x38) smb_vwv[5]=0 (0x0) smb_vwv[6]=28 (0x1C) smb_vwv[7]=56 (0x38) smb_vwv[8]=0 (0x0) smb_vwv[9]=0 (0x0) smb_bcc=29 size=84 smb_com=0x25 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=1 smb_tid=1 smb_pid=2171 smb_uid=0 smb_mid=1 smt_wct=10 smb_vwv[0]=0 (0x0) smb_vwv[1]=28 (0x1C) smb_vwv[2]=0 (0x0) smb_vwv[3]=0 (0x0) smb_vwv[4]=56 (0x38) smb_vwv[5]=0 (0x0) smb_vwv[6]=28 (0x1C) smb_vwv[7]=56 (0x38) smb_vwv[8]=0 (0x0) smb_vwv[9]=0 (0x0) smb_bcc=29 rpc_check_hdr: rdata->data_size = 28 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 001c 000a auth_len : 0000 000c call_id : 00000015 000010 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 00000004 0014 context_id: 0000 0016 cancel_ct : 00 0017 reserved : 00 rpc_api_pipe: len left: 0 smbtrans read: 28 000018 spoolss_io_r_addprinterdriver 0018 status: DOS code 0x00000013 size=35 smb_com=0x4 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=1 smb_tid=1 smb_pid=2171 smb_uid=0 smb_mid=1 smt_wct=0 smb_bcc=0 result was NT_STATUS_UNSUCCESSFUL rpcclient $>
Corey McGuire mcguire.corey at ssd.loral.com wrote on Samba-Digest:> Mon May 5 18:04:39 GMT 2003 > > > Hey folks. > > I am trying to set up a cups/samba printer server, and I am having trouble using cupsaddsmb.Have you checked the newly drafted documentation about this on http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/ ? Have you tried to run * "smbclient ... put [all driver files ot print$ share]" * "rpcclient ... adddriver [with correct arguments]" * "rpcclient ... setdriver [with correct arguments]" manually, as described there?> > I isolated the problem to a rpcclient and here is the information I> gathered from the various commands.> > If I delete all the files in "/var/lib/samba/drivers" cupsaddsmb installs> the folders and files, but doesn't move the files in to the WIN40/0 folder > with the adddriver command. That *should* happen. As well as moving the other files to the W32X86/2/ directory.> I am using SuSE 8.1 with samba 2.2.5Ok -- but what's the version of CUPS SuSE 8.1 was shipping?> Attached are early revisions of my system configuration instructions> with details on how I installed all my services. This was not visible for me on Samba-Digest.> They aren't finished,> but I thught they may help incase I missed something.> > Thanks! > > *-*-*-*-*-*-*-*-*-*- cupsaddsmb -*-*-*-*-*-*-*-*-*-*Ok --- le'sseeeee.......> DvPrntSvr:/var/lib/samba # cupsaddsmb -U root -a -v > Password for root required to access localhost via SAMBA: > Running command: smbclient //localhost/print\$ -N -U'root%<password removed>' -c 'mkdir W32X86;put /var/spool/cups/tmp/3eb694ef6a9a6 W32X86/P45DEVLAB.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=158.184.44.107 bcast=158.184.45.255 nmask=255.255.254.0 > Domain=[BLACKFOREST] OS=[Unix] Server=[Samba 2.2.5] > putting file /var/spool/cups/tmp/3eb694ef6a9a6 as \W32X86/P45DEVLAB.PPD (11148.4 kb/s) (average 11148.6 kb/s) > putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (17874.9 kb/s) (average 16403.6 kb/s) > putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (14722.1 kb/s) (average 16034.5 kb/s) > putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (9008.8 kb/s) (average 15707.8 kb/s) > > Running command: smbclient //localhost/print\$ -N -U'root%<password removed>' -c 'mkdir WIN40;put /var/spool/cups/tmp/3eb694ef6a9a6 WIN40/P45DEVLAB.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=158.184.44.107 bcast=158.184.45.255 nmask=255.255.254.0 > Domain=[BLACKFOREST] OS=[Unix] Server=[Samba 2.2.5] > putting file /var/spool/cups/tmp/3eb694ef6a9a6 as \WIN40/P45DEVLAB.PPD (13006.5 kb/s) (average 13006.7 kb/s) > putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (18736.0 kb/s) (average 17781.2 kb/s) > putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (17823.5 kb/s) (average 17809.3 kb/s) > putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (15987.8 kb/s) (average 17625.6 kb/s) > putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (6587.6 kb/s) (average 17443.2 kb/s) > putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (14419.7 kb/s) (average 17255.7 kb/s) > putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (13999.7 kb/s) (average 17157.8 kb/s) > > Running command: rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows NT x86" "P45DEVLAB:ADOBEPS5.DLL:P45DEVLAB.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' > cmd = adddriver "Windows NT x86" "P45DEVLAB:ADOBEPS5.DLL:P45DEVLAB.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL" > result was NT_STATUS_UNSUCCESSFULWhich are ownership and access rights for W32X86? Is root allowed to not only create subdirectories there, but also put files in? Which are ownership and acces rights for the location where your printing *.tdb files reside? What happens if you put manually all the files (ADOBEPS5.DLL, P45DEVLAB.PPD, ADOBEPSU.DLL, ADOBEPSU.HLP) into [print$]/W32X86/ and then run the command rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows NT x86" "P45DEVLAB:ADOBEPS5.DLL:P45DEVLAB.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' ? You can increas verbosity with the "-d" parameter: rpcclient localhost -d 3 -N -U'root%<password>' -c 'adddriver "Windows NT x86" "P45DEVLAB:ADOBEPS5.DLL:P45DEVLAB.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' rpcclient localhost -d 5 -N -U'root%<password>' -c 'adddriver "Windows NT x86" "P45DEVLAB:ADOBEPS5.DLL:P45DEVLAB.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' The man page says about the "rpcclient adddriver" command, that it takes two parameters: adddriver <arch> <config> The <config> parameter consists of these 8 colon-separated fields: Long Printer Name:\ Driver File Name:\ Data File Name:\ Config File Name:\ Help File Name:\ Language Monitor Name:\ Default Data Type:\ Comma Separated list of Files Any empty fields should be entered as the string "NULL". So the command seems to be the right one. (I remember a bug in one version of cupsaddsmb which had this messed up). Seems to be OK here. [ As a side note: what the man page calls the "Long Printer Name" should really be the "Driver Name". It may be set to any legal string. It is under your control to name the driver as you like. I believe it doesn't break anything. As long as you re-use that same name later in the "setdriver" command, this is allright...]> Running command: rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows 4.0" "P45DEVLAB:ADOBEPS4.DRV:P45DEVLAB.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' > cmd = adddriver "Windows 4.0" "P45DEVLAB:ADOBEPS4.DRV:P45DEVLAB.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"Syntax is OK here too.> result was NT_STATUS_UNSUCCESSFUL>> Running command: rpcclient localhost -N -U'root%<password removed>' -c 'setdriver P45DEVLAB P45DEVLAB' > cmd = setdriver P45DEVLAB P45DEVLAB > Succesfully set P45DEVLAB to driver P45DEVLAB. > > Running command: smbclient //localhost/print\$ -N -U'root%<password removed>' -c 'mkdir W32X86;put /var/spool/cups/tmp/3eb694f6e7a75 W32X86/P45DEVLAB2.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=158.184.44.107 bcast=158.184.45.255 nmask=255.255.254.0 > Domain=[BLACKFOREST] OS=[Unix] Server=[Samba 2.2.5] > NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 > putting file /var/spool/cups/tmp/3eb694f6e7a75 as \W32X86/P45DEVLAB2.PPD (13006.5 kb/s) (average 13006.7 kb/s) > putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (16550.9 kb/s) (average 15906.5 kb/s) > putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (14722.1 kb/s) (average 15652.7 kb/s) > putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (9008.8 kb/s) (average 15350.8 kb/s) > > Running command: smbclient //localhost/print\$ -N -U'root%<password removed>' -c 'mkdir WIN40;put /var/spool/cups/tmp/3eb694f6e7a75 WIN40/P45DEVLAB2.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=158.184.44.107 bcast=158.184.45.255 nmask=255.255.254.0 > Domain=[BLACKFOREST] OS=[Unix] Server=[Samba 2.2.5] > NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40 > putting file /var/spool/cups/tmp/3eb694f6e7a75 as \WIN40/P45DEVLAB2.PPD (11148.4 kb/s) (average 11148.6 kb/s) > putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (17565.0 kb/s) (average 16413.4 kb/s) > putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (17100.9 kb/s) (average 16863.6 kb/s) > putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (14758.0 kb/s) (average 16646.4 kb/s) > putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (6587.6 kb/s) (average 16489.2 kb/s) > putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (14419.7 kb/s) (average 16367.5 kb/s) > putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (13999.7 kb/s) (average 16299.9 kb/s) > > Running command: rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows NT x86" "P45DEVLAB2:ADOBEPS5.DLL:P45DEVLAB2.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' > cmd = adddriver "Windows NT x86" "P45DEVLAB2:ADOBEPS5.DLL:P45DEVLAB2.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL" > result was NT_STATUS_UNSUCCESSFUL > > Running command: rpcclient localhost -N -U'root%<password removed>' -c 'adddriver "Windows 4.0" "P45DEVLAB2:ADOBEPS4.DRV:P45DEVLAB2.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"' > cmd = adddriver "Windows 4.0" "P45DEVLAB2:ADOBEPS4.DRV:P45DEVLAB2.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL" > result was NT_STATUS_UNSUCCESSFUL > > Running command: rpcclient localhost -N -U'root%<password removed>' -c 'setdriver P45DEVLAB2 P45DEVLAB2' > cmd = setdriver P45DEVLAB2 P45DEVLAB2 > Succesfully set P45DEVLAB2 to driver P45DEVLAB2.This indicates that the registration of the driver data to the Samba TDB files succeeded. However the physical transfer of the files to the subdirecties doesn't take place.
Hello I have almost got my printing system working except for this I have set up the printers and have the guest account guest ok = no guest account = nobody but the system seems to think nobody does not exist. [2003/05/07 10:59:51, 0] smbd/password.c:authorise_login(863) authorise_login: rejected invalid user nobody [2003/05/07 10:59:51, 0] smbd/password.c:authorise_login(863) authorise_login: rejected invalid user nobody [2003/05/07 10:59:54, 0] smbd/password.c:authorise_login(863) authorise_login: rejected invalid user nobody [2003/05/07 10:59:54, 0] smbd/password.c:authorise_login(863) authorise_login: rejected invalid user nobody>From /etc/passwd all standard stuffoperator:x:11:0:operator:/root:/sbin/nologin games:x:12:100:games:/usr/games:/sbin/nologin gopher:x:13:30:gopher:/var/gopher:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin nobody:x:99:99:Nobody:/:/sbin/nologin mailnull:x:47:47::/var/spool/mqueue:/dev/null rpm:x:37:37::/var/lib/rpm:/bin/bash xfs:x:43:43:X Font Server:/etc/X11/fs:/bin/false ntp:x:38:38::/etc/ntp:/sbin/nologin rpc:x:32:32:Portmapper RPC user:/:/bin/false The user does exist Any help much appreciated Many thanks Mike
What happens if you try ftp as the guest user? Joel On Wed, May 07, 2003 at 11:42:19AM +1200, Mikevl wrote:> Hello I have almost got my printing system working except for this > > I have set up the printers and have the guest account > guest ok = no > guest account = nobody > > but the system seems to think nobody does not exist. > > [2003/05/07 10:59:51, 0] smbd/password.c:authorise_login(863) > authorise_login: rejected invalid user nobody > [2003/05/07 10:59:51, 0] smbd/password.c:authorise_login(863) > authorise_login: rejected invalid user nobody > [2003/05/07 10:59:54, 0] smbd/password.c:authorise_login(863) > authorise_login: rejected invalid user nobody > [2003/05/07 10:59:54, 0] smbd/password.c:authorise_login(863) > authorise_login: rejected invalid user nobody > > >From /etc/passwd all standard stuff > > operator:x:11:0:operator:/root:/sbin/nologin > games:x:12:100:games:/usr/games:/sbin/nologin > gopher:x:13:30:gopher:/var/gopher:/sbin/nologin > ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin > nobody:x:99:99:Nobody:/:/sbin/nologin > mailnull:x:47:47::/var/spool/mqueue:/dev/null > rpm:x:37:37::/var/lib/rpm:/bin/bash > xfs:x:43:43:X Font Server:/etc/X11/fs:/bin/false > ntp:x:38:38::/etc/ntp:/sbin/nologin > rpc:x:32:32:Portmapper RPC user:/:/bin/false > > The user does exist > > Any help much appreciated > > Many thanks > > Mike > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba