cupsaddsmb

Erik REMOVEMEerik.gilsdorf at epost.de
Sun Jun 6 03:50:29 PDT 2004


Hello everybody, I'm new to Linux and building up a Linux printserver
for our Win 2000 domain.
If I install the printers on the Linux machine everything works fine.
Now I'm trying to make samba offer the drivers for the windows 2k terminalserver.
Uploading via the "Add printer wizzard" on the Windows machine ends up in "The drivers for HP Business Jet 2280, Windows 2000, Intel could not be installed".
Using cupsaddsmb brings:


linux:~ # cupsaddsmb -a -v
Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'root%xxx' -c 'mkdir W32X86;put /var/spool/cups/tmp/40c2f3114fa36 W32X86/Tintenstrahler.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp'
Domain=[LINUX] OS=[Unix] Server=[Samba 3.0.2a-SUSE]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /var/spool/cups/tmp/40c2f3114fa36 as \W32X86/Tintenstrahler.ppd (70.5 kb/s) (average 70.5 kb/s)
putting file /usr/share/cups/drivers/cupsdrv5.dll as \W32X86/cupsdrv5.dll (1455.8 kb/s) (average 791.9 kb/s)
putting file /usr/share/cups/drivers/cupsui5.dll as \W32X86/cupsui5.dll (1729.0 kb/s) (average 1031.5 kb/s)
putting file /usr/share/cups/drivers/cups5.hlp as \W32X86/cups5.hlp (278.0 kb/s) (average 961.1 kb/s)

Running command: rpcclient localhost -N -U'root%xxx' -c 'adddriver "Windows NT x86" "Tintenstrahler:cupsdrv5.dll:Tintenstrahler.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL"'
result was DOS code 0x00000042

The driver files are in W32X86 but I can't find anything in the web about this mysterious DOS code error.

My smb.conf:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2004-04-06
[global]
   workgroup = ING-BUERO
   interfaces = 127.0.0.1 eth0
   bind interfaces only = true
   load printers = yes
   printing = cups
   printcap name = cups
   printer admin = @ntadmin root Administrator
   admin users = @ntadmin root
   map to guest = Bad User
   ;; security = USER
   encrypt passwords = yes
   server string = Samba Server
   add machine script =
   domain master = false
   domain logons = no
   local master = no
   preferred master = auto
   ldap suffix = dc=example,dc=com
   netbios name = Linux
   passdb backend = smbpasswd

;; [homes]
;;   comment = Home Directories
;;   valid users = %S
;;   browseable = no
;;   read only = No
;;   guest ok = no
;;   printable = no
[users]
   comment = All users
   path = /home
   writeable = Yes
   inherit permissions = Yes
   veto files = /aquota.user/groups/shares/
   browseable = yes
   guest ok = no
   printable = no
[groups]
   comment = All groups
   path = /home/groups
   writeable = Yes
   inherit permissions = Yes
   browseable = yes
   guest ok = no
   printable = no
[pdf]
   comment = PDF creator
   path = /var/tmp
   printable = yes
   print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
   create mask = 0600
   browseable = yes
   guest ok = no
[printers]
   comment = All Printers
   path = /var/tmp
   printable = yes
   create mask = 0600
   browseable = yes
   guest ok = yes
   writable = no
   printer admin = root Administrator
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/drivers
   write list = @ntadmin root Administrator
   create mask = 0664
   directory mask = 0775
   browseable = yes
   guest ok = yes
   printable = yes
   read only = yes
   write list = root Administrator






More information about the cups mailing list