19.10. Samba with CUPS Printing Support

19.10. Samba with CUPS Printing Support

Samba allows client machines to share printers connected to the Samba server. In addition, Samba also allows client machines to send documents built in Linux to Windows printer shares. Although there are other printing systems that function with Red Hat Enterprise Linux, CUPS (Common UNIX Print System) is the recommended printing system due to its close integration with Samba.

19.10.1. Simple smb.conf Settings

The following example shows a very basic smb.conf configuration for CUPS support:

[global] 
load printers = Yes 
printing = cups 
printcap name = cups  
[printers] 
comment = All Printers 
path = /var/spool/samba/print 
printer = IBMInfoP 
browseable = No 
public = Yes 
guest ok = Yes 
writable = No 
printable = Yes 
printer admin = @ntadmins  
[print$] 
comment = Printer Drivers Share 
path = /var/lib/samba/drivers 
write list = ed, john 
printer admin = ed, john

Other printing configurations are also possible. To add additional security and privacy for printing confidential documents, users can have their own print spooler not located in a public path. If a job fails, other users would not have access to the file.

The print$ share contains printer drivers for clients to access if not available locally. The print$ share is optional and may not be required depending on the organization.

Setting browseable to Yes enables the printer to be viewed in the Windows Network Neighborhood, provided the Samba server is set up correctly in the domain/workgroup.


Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.