[Samba] cupsaddsmb problems...

Jason Williams jwilliams at courtesymortgage.com
Fri Nov 5 21:37:00 GMT 2004

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

I put the following info in smb.conf:

    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

    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= bcast= nmask=
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 (97300000.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 
(142340000.0 kb/s) (average 51149.6 kb/s)

Running command: rpcclient localhost -N -U'root%test' -c 'adddriver 
"Windows NT x86" 

cmd = adddriver "Windows NT x86" 


Running command: rpcclient localhost -N -U'root%test' -c 'setdriver 
SalesPrinter-4 SalesPrinter-4'
cmd = setdriver SalesPrinter-4 SalesPrinter-4
SetPrinter call failed!

(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] 

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.


More information about the samba mailing list