|
Extended Printing Configuration
Extended BSD Printing Configuration shows a more verbose configuration for
print-related settings in a BSD-style printing environment. What follows is a discussion and explanation of
the various parameters. We chose to use BSD-style printing here because it is still the most commonly used
system on legacy UNIX/Linux installations. New installations predominantly use CUPS, which is discussed in a
separate chapter. The example explicitly names many parameters that do not need to be specified because they
are set by default. You could use a much leaner smb.conf file, or you can use
testparm
or
SWAT
to optimize the smb.conf file to remove all parameters that are set at default.
Example20.2.Extended BSD Printing Configuration
|
[global]
|
printing = bsd
|
load printers = yes
|
show add printer wizard = yes
|
printcap name = /etc/printcap
|
printer admin = @ntadmin, root
|
max print jobs = 100
|
lpq cache time = 20
|
use client driver = no
|
|
[printers]
|
comment = All Printers
|
printable = yes
|
path = /var/spool/samba
|
browseable = no
|
guest ok = yes
|
public = yes
|
read only = yes
|
writable = no
|
|
[my_printer_name]
|
comment = Printer with Restricted Access
|
path = /var/spool/samba_my_printer
|
printer admin = kurt
|
browseable = yes
|
printable = yes
|
writable = no
|
hosts allow = 0.0.0.0
|
hosts deny = turbo_xp, 10.160.50.23, 10.160.51.60
|
guest ok = no
|
This is an example configuration. You may not find all the settings that are in the configuration file that
was provided by the OS vendor. Samba configuration parameters, if not explicitly set, default to a sensible
value. To see all settings, as root use the
testparm
utility.
testparm
gives warnings for misconfigured settings.
|
|