[Samba] uploading printer driver using APW changes printer share name

Marcus Sobchak <lists at localguru.de> lists at localguru.de
Sat Dec 8 14:19:06 GMT 2007


Hi,

I've set up a printer called "UREW-EDV" using the cups webinterface.
After that an enumprinters give the following output:

rpcclient $> enumprintershp LaserJet 1320 PCL 6
 flags:[0x800000]
 name:[\\server\UREW-EDV]
 description:[\\server\UREW-EDV,,Netzwerkdrucker-EDV]
 comment:[Netzwerkdrucker-EDV]

Next step is uploading a driver using APW:

http://samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id388469

This works fine, but afterwards the name of the printer is changed to
the name _of the driver_ (in this case from "UREW-EDV" to "hp LaserJet
1320 PCL 6"):

rpcclient $> enumprinters
 flags:[0x800000]
 name:[\\server\hp LaserJet 1320 PCL 6] <- ???
 description:[\\server\hp LaserJet 1320 PCL 6,hp LaserJet 1320 PCL
6,Netzwerkdrucker-EDV]
 comment:[Netzwerkdrucker-EDV]

Now the printer is shown as "hp LaserJet 1320 PCL 6" under \\server ->
"Printer and Faxes". Why that? To correct this I have to open the
printer properties and set the name back to "UREW-EDV" manually. Without
this correction the PrintandPoint feature for this printer doesn't work.
It took me a hole night to figure this out. Is this a normal behaviour
or is this my mistake?

System info:

  samba                        3.0.24-6etch8
  samba-common                 3.0.24-6etch8
  cupsys                       1.2.7-4etch1                         
  cupsys-bsd                   1.2.7-4etch1                         
  cupsys-client                1.2.7-4etch1                         
  cupsys-common                1.2.7-4etch1                         
  libcupsimage2                1.2.7-4etch1                         
  libcupsys2                   1.2.7-4etch1

[global]
        .....
        load printers = yes
        printing = cups
        printcap name = cups

[printers]
        comment = All Printers
        browseable = no
        path = /var/spool/samba
        printable = yes
        public = no
        writable = no
        create mode = 0700

[print$]
        comment = Drucker Treiber
        path = /var/lib/samba/printers
        browseable = yes
        read only = yes 
        guest ok = no   
        write list = root

Thanks,
Marcus




More information about the samba mailing list