[Samba] cusaddsmb and setdriver
Kalkoul Morad
M-Kalkoul at arte-tv.com
Fri Nov 8 17:12:01 GMT 2002
hi,
my boxes: RH 8.0
with samba2.2.6-2 and cups 1.1.15-10
samba runs ok and cups runs ok.I putted Adobe Postscript Printer in
/usr/share/cups/drivers.
And when I want to export my Cups Printer with cupsaddsmb, this what it
happens:
[root at bouffon sbin]# cupsaddsmb -H bouffon -U DOMAINNAME\\root -h bouffon -v
infolpPassword for DOMAINNAME\root required to access bouffon via SAMBA:
Running command: smbclient //bouffon/print\$ -N -U'DOMAINNAME\root%secret'
-c 'mkdir W32X86;put /var/spool/cups/tmp/3dcbea80b2a8e W32X86/infolp.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.25.4.65 bcast=172.25.255.255 nmask=255.255.0.0
Domain=[DOMAINNAME] OS=[Unix] Server=[Samba 2.2.6]
putting file /var/spool/cups/tmp/3dcbea80b2a8e as \W32X86/infolp.PPD (816.4
kb/s) (average 816.4 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL
(5656.2 kb/s) (average 3972.8 kb/s)
putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL
(4263.1 kb/s) (average 4044.9 kb/s)
putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP
(627.6 kb/s) (average 3484.7 kb/s)
Running command: smbclient //bouffon/print\$ -N -U'DOMAINNAME\root%secret'
-c 'mkdir WIN40;put /var/spool/cups/tmp/3dcbea80b2a8e WIN40/infolp.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.25.4.65 bcast=172.25.255.255 nmask=255.255.0.0
Domain=[DOMAINNAME] OS=[Unix] Server=[Samba 2.2.6]
putting file /var/spool/cups/tmp/3dcbea80b2a8e as \WIN40/infolp.PPD (837.3
kb/s) (average 837.3 kb/s)
putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM
(5677.6 kb/s) (average 4309.7 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV
(21522.7 kb/s) (average 9215.0 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP
(3206.4 kb/s) (average 7649.5 kb/s)
putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD
(77.9 kb/s) (average 4641.8 kb/s)
putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL
(1406.8 kb/s) (average 4126.7 kb/s)
putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (1076.9
kb/s) (average 3847.0 kb/s)
Running command: rpcclient bouffon -N -U'DOMAINNAME\root%secret' -c
'adddriver "Windows NT x86"
"infolp:ADOBEPS5.DLL:infolp.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"'
cmd = adddriver "Windows NT x86"
"infolp:ADOBEPS5.DLL:infolp.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"
Printer Driver infolp successfully installed.
Running command: rpcclient bouffon -N -U'DOMAINNAME\root%secret' -c
'adddriver "Windows 4.0"
"infolp:ADOBEPS4.DRV:infolp.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,
DEFPRTR2.PPD,ICONLIB.DLL"'
cmd = adddriver "Windows 4.0"
"infolp:ADOBEPS4.DRV:infolp.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,
DEFPRTR2.PPD,ICONLIB.DLL"
Printer Driver infolp successfully installed.
Running command: rpcclient bouffon -N -U'DOMAINNAME\root%secret' -c
'setdriver infolp infolp'
cmd = setdriver infolp infolp
result was NT_STATUS_UNSUCCESSFUL
And setdriver executable isn't on the server, is it normal??
Or maybe my command is not good?
Someone has an idea?
Thanks a lot for your help, MO
More information about the samba
mailing list