[Samba] Samba and TCP printing ports

Jason Gray jgray at bardelanimation.com
Mon Feb 2 23:39:12 GMT 2004


I've read in the documentation that Samba does not use ports like Win2k.  So
how does Samba know where to find a network printer if it has it's own IP
address (stand-alone printer)?

I have created a printer in my /etc/printcap file:

HP4000:\
:sd=/var/spool/lpd/hp4000:\
:mx#0:
:sh:\
:rm:192.168.2.13:rp=raw:
:rp=:\

added this to my smb.conf

[printers]
comment = All Printers
printable = yes
path = /var/spool/lpd
browseable = no
guest ok = yes
public = yes
read only = yes
writable = no

[print$]
comment = Printer Download Area
path = /etc/samba/drivers
browseable = yes
guest ok = yes
read only = yes
write list = @ntadmin, root, administrator

I've used the APW to add the printer drivers into the appropriate
directories:

/etc/samba/drivers/W32X86/3:

-rwxr--r--    1 root     domainadmin   136192 Aug 17  2001 HPCFONT.DLL
-rwxr--r--    1 root     domainadmin    21866 Jul 21  2001 hpcljx.hlp
-rwxr--r--    1 root     domainadmin    36622 Jul 21  2001 HPLJ4000.GPD
-rwxr--r--    1 root     domainadmin   676352 Aug 17  2001 PCL5ERES.DLL
-rwxr--r--    1 root     domainadmin    14362 Jul 21  2001 STDNAMES.GPD
-rwxr--r--    1 root     domainadmin      698 Jul 21  2001 TTFSUB.GPD
-rwxr--r--    1 root     domainadmin   252416 Aug 29  2002 UNIDRV.DLL
-rwxr--r--    1 root     domainadmin    21225 Jul 21  2001 UNIDRV.HLP
-rwxr--r--    1 root     domainadmin   197120 Aug 29  2002 UNIDRVUI.DLL
-rwxr--r--    1 root     domainadmin   619520 Aug 17  2001 UNIRES.DLL

and the driver has been assigned to the printer.

I can add the printer to the workstations but the printer and the Samba PDC
are not talking.  How can I test this connection?

Cheers,

Jason



More information about the samba mailing list