[Samba] Difficulty with Samba 2.2.8 and native CUPS PS drivers

David F. Severski davidski-samba at deadheaven.com
Mon Mar 31 13:18:11 GMT 2003


On Mon, Mar 31, 2003 at 12:36:08PM +0200, Kurt Pfeifle wrote:
> can you please verify, that "cupsaddsmb -v [printername]" completes
> successfully This means, you need to have the "smbclient" command
> putting the files successfully to the "print$" share, and afterwards
> read "success" meassages in the output: 2 for the "rpcclient addriver"
> commands and 1 for the "rpcclient setdriver" command...

Kurt,

The cupsaddsmb command completes with no errors.  I have also previously 
deleted the ntdrivers.tdb, ntprinters.tdb, and ntprinters.tdb files, stoped 
and restarted samba, and repeated the cupssmbadd command with no change 
in results.  Below is the output of cupsaddsmb, editted only to obscure the 
password used, along with a listing of the CUPS drivers in the print$ 
share:

File list
---------
root at geoff:/usr/local/samba# ll -R printers/
total 3
drwxrwxr-x  3 root  wheel  512 Mar 30 06:29 ./
drwx--x--x  6 root  wheel  512 Jan 12 11:24 ../
drwxrwxr-x  3 root  wheel  512 Mar 31 05:10 W32X86/

printers/W32X86:
total 3
drwxrwxr-x  3 root  wheel  512 Mar 31 05:10 ./
drwxrwxr-x  3 root  wheel  512 Mar 30 06:29 ../
drwxrwxr-x  2 root  wheel  512 Mar 31 05:10 2/

printers/W32X86/2:
total 648
drwxrwxr-x  2 root  wheel     512 Mar 31 05:10 ./
drwxrwxr-x  3 root  wheel     512 Mar 31 05:10 ../
-rwxr--r--  1 root  wheel  120593 Mar 31 05:10 Canon_BJC.ppd*
-rwxr--r--  1 root  wheel   14234 Mar 31 05:10 cups.hlp*
-rwxr--r--  1 root  wheel  278380 Mar 31 05:10 cupsdrvr.dll*
-rwxr--r--  1 root  wheel  215848 Mar 31 05:10 cupsui.dll*
---------

cupsaddsmb -v -a
----------------
Running command: smbclient //localhost/print\$ -N -U'root%12345' -c 'mkdir W32X86;put /var/spool/cups/tmp/3e883e5be9b91 W32X86/Canon_BJC.ppd;put /usr/local/share/cups/drivers/cupsdrvr.dll W32X86/cupsdrvr.dll;put /usr/local/share/cups/drivers/cupsui.dll W32X86/cupsui.dll;put /usr/local/share/cups/drivers/cups.hlp W32X86/cups.hlp'
added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[DEADHEAVEN] OS=[Unix] Server=[Samba 2.2.8]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /var/spool/cups/tmp/3e883e5be9b91 as \W32X86/Canon_BJC.ppd (5353.0 kb/s) (average 5353.0 kb/s)
putting file /usr/local/share/cups/drivers/cupsdrvr.dll as \W32X86/cupsdrvr.dll (4530.9 kb/s) (average 4751.5 kb/s)
putting file /usr/local/share/cups/drivers/cupsui.dll as \W32X86/cupsui.dll (3399.8 kb/s) (average 4169.5 kb/s)
putting file /usr/local/share/cups/drivers/cups.hlp as \W32X86/cups.hlp (397.2 kb/s) (average 3431.9 kb/s)

Running command: rpcclient localhost -N -U'root%12345' -c 'adddriver "Windows NT x86" "Canon_BJC:cupsdrvr.dll:Canon_BJC.ppd:cupsui.dll:cups.hlp:NULL:RAW:NULL"'
cmd = adddriver "Windows NT x86" "Canon_BJC:cupsdrvr.dll:Canon_BJC.ppd:cupsui.dll:cups.hlp:NULL:RAW:NULL"
Printer Driver Canon_BJC successfully installed.

Running command: rpcclient localhost -N -U'root%12345' -c 'setdriver Canon_BJC Canon_BJC'
cmd = setdriver Canon_BJC Canon_BJC
Succesfully set Canon_BJC to driver Canon_BJC.
----------------

Again, thanks for your help!

David


More information about the samba mailing list