[Samba] cupsaddsmb claims to work but fails

Damien Bonvillain kame at cinemasie.com
Mon Jul 28 22: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. Ask
me for anything, 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

[global]
        workgroup = NAVI
        server string = %h server (Samba %v)
        security = USER
        encrypt passwords = true
        obey pam restrictions = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:*
%n\n .
        log level = 3
        syslog = 3
        max log size = 1000
        printcap name = cups
        preferred master = True
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        guest account = smbuser
        hosts allow = 192.168.
        printing = cups
        load printers = yes
        guest ok = yes
        disable spoolss = no

[printers]
        comment = All Printers
        path = /var/spool/samba
        printer admin = root
        guest ok = yes
        printable = yes
        browseable = no
        public = yes
        writable = no

[print$]
        comment = Printer Drivers
        path = /etc/samba/drivers
        browseable = yes
        guest ok = no
        read only = yes
        write list = root

============================================
cupsaddsmb output

cupsaddsmb -a -v
Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'root%xxxxxxxx' -c 'mkdir W32X86;put
/var/spool/cups/tmp/3f25a6fe1ed41 W32X86/MomijiPrintingSystem.ppd;put
/usr/share/cups/drivers/cupsdrvr.dll W32X86/cupsdrvr.dll;put
/usr/share/cups/drivers/cupsui.dll W32X86/cupsui.dll;put /usr/share/cups/drivers/cups.hlp
W32X86/cups.hlp'
added interface ip=192.168.0.6 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.3a-14 for Debian]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /var/spool/cups/tmp/3f25a6fe1ed41 as \W32X86/MomijiPrintingSystem.ppd (3115.0
kb/s) (average 3115.0 kb/s)
putting file /usr/share/cups/drivers/cupsdrvr.dll as \W32X86/cupsdrvr.dll (7154.1 kb/s)
(average 6184.7 kb/s)
putting file /usr/share/cups/drivers/cupsui.dll as \W32X86/cupsui.dll (8107.2 kb/s)
(average 6842.4 kb/s)
putting file /usr/share/cups/drivers/cups.hlp as \W32X86/cups.hlp (161.6 kb/s) (average
3295.8 kb/s)

Running command: rpcclient localhost -N -U'root%xxxxxxxx' -c 'adddriver "Windows NT x86"
"MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N
ULL"'
INFO: Debug class all level = 3   (pid 26006 from pid 26006)
session setup ok
Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.3a-14 for Debian]
cmd = adddriver "Windows NT x86"
"MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N
ULL"
adddriver "Windows NT x86"
"MomijiPrintingSystem:cupsdrvr.dll:MomijiPrintingSystem.ppd:cupsui.dll:cups.hlp:NULL:RAW:N
ULL"
Printer Driver MomijiPrintingSystem successfully installed.

Running command: smbclient //localhost/print\$ -N -U'root%xxxxxxxx' -c 'mkdir WIN40;put
/var/spool/cups/tmp/3f25a6fe1ed41 WIN40/MomijiPrintingSystem.PPD;put
/usr/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put
/usr/share/cups/drivers/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV;put
/usr/share/cups/drivers/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP;put
/usr/share/cups/drivers/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD;put
/usr/share/cups/drivers/ICONLIB.DLL WIN40/ICONLIB.DLL;put
/usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;'
added interface ip=192.168.0.6 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.3a-14 for Debian]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40
putting file /var/spool/cups/tmp/3f25a6fe1ed41 as \WIN40/MomijiPrintingSystem.PPD (4153.3
kb/s) (average 4153.3 kb/s)
putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (8265.9 kb/s)
(average 7785.2 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (9602.5 kb/s)
(average 8933.0 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (8994.8 kb/s)
(average 8939.4 kb/s)
putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (102.8 kb/s)
(average 5806.2 kb/s)
putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (4436.9 kb/s)
(average 5714.2 kb/s)
putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (2074.1 kb/s) (average
5476.8 kb/s)

Running command: rpcclient localhost -N -U'root%xxxxxxxx' -c 'adddriver "Windows 4.0"
"MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA
W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC
ONLIB.DLL"'
INFO: Debug class all level = 3   (pid 26012 from pid 26012)
session setup ok
Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.3a-14 for Debian]
cmd = adddriver "Windows 4.0"
"MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA
W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC
ONLIB.DLL"
adddriver "Windows 4.0"
"MomijiPrintingSystem:ADOBEPS4.DRV:MomijiPrintingSystem.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RA
W:ADOBEPS4.DRV,MomijiPrintingSystem.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,IC
ONLIB.DLL"
Printer Driver MomijiPrintingSystem successfully installed.

Running command: rpcclient localhost -N -U'root%xxxxxxxx' -c 'setdriver
MomijiPrintingSystem MomijiPrintingSystem'
INFO: Debug class all level = 3   (pid 26015 from pid 26015)
session setup ok
Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.3a-14 for Debian]
cmd = setdriver MomijiPrintingSystem MomijiPrintingSystem
setdriver MomijiPrintingSystem MomijiPrintingSystem
Succesfully set MomijiPrintingSystem to driver MomijiPrintingSystem.

============================================
getprinter output

root at momiji:/etc/samba/drivers# rpcclient -U root%xxxxxxx -c "getprinter
MomijiPrintingSystem" localhost
INFO: Debug class all level = 3   (pid 26873 from pid 26873)
session setup ok
Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.3a-14 for Debian]
cmd = getprinter MomijiPrintingSystem
getprinter MomijiPrintingSystem
        flags:[0x800000]
        name:[\\localhost\MomijiPrintingSystem]
        description:[localhost\\localhost\MomijiPrintingSystem,MomijiPrintingSystem,HP
DeskJet 720C]
        comment:[HP DeskJet 720C]

============================================
enumdrivers output (even after waiting a complete hour)

root at momiji:/etc/samba/drivers# rpcclient -U root%xxxxxxx -c "enumdrivers 3" localhost
INFO: Debug class all level = 3   (pid 26930 from pid 26930)
session setup ok
Domain=[NAVI] OS=[Unix] Server=[Samba 2.2.3a-14 for Debian]
cmd = enumdrivers 3
enumdrivers 3




More information about the samba mailing list