Verifying Configuration with
testparm
To see all (or at least most) printing-related settings in Samba, including the implicitly used ones, try the
command outlined below. This command greps for all occurrences of lp ,
print , spool , driver ,
ports , and [ in
testparm
's output. This provides
a convenient overview of the running
smbd
print configuration. This command does not show
individually created printer shares or the spooling paths they may use. Here is the output of my Samba setup,
with settings shown in
the example above:
root#
testparm -s -v | egrep "(lp|print|spool|driver|ports|\[)"
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
[global]
smb ports = 139 445
lpq cache time = 10
load printers = Yes
printcap name = /etc/printcap
disable spoolss = No
enumports command =
addprinter command =
deleteprinter command =
show add printer wizard = Yes
os2 driver map =
printer admin =
min print space = 0
max print jobs = 1000
printable = No
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j
lppause command =
lpresume command =
printer name =
use client driver = No
[homes]
[printers]
path = /var/spool/samba
printable = Yes
You can easily verify which settings were implicitly added by Samba's default behavior.
Remember: it
may be important in your future dealings with Samba.
|