System information

Chapter 4. Installing and configuring Samba 59
You will find our sample smb.conf configuration file in Appendix A, “Samba configuration file”
on page 99.
Global NetBIOS parameters
The NetBIOS parameters should be at the top of the global section in the configuration file.
When you open the smb.conf file, you will see something similar to Example 4-1.
Example 4-1 NetBIOS global settings
#=================== Global Settings ========================
[global]
netbios name = Blade1
workgroup = LINUX
server string = Samba Server on Red Hat Linux
The parameters are described in Table 4-1.
Table 4-1 NetBIOS parameters
Global printing parameters
The global printing settings will look similar to what is shown in Example 4-2.
Example 4-2 Global printing settings
load printers = yes
printcap name = /etc/printcap
# printing = lprng
The parameters are described in Table 4-2.
Table 4-2 Printing parameters
Parameters Descriptions
NetBIOS name The Samba server is known by this name on the network, similar to the
Windows NT computer name. The default value is the first component of the
host name.
workgroup Specifies which Windows NT domain or workgroup the server will
participate. It is equivalent to the Windows domain or workgroup name.
server string Specifies the system description string which appears in the network
browser list next to the machine name. It serves the same role as the
Windows NT description field.
Parameter Description
load printers This parameter controls whether Samba loads all the printers in the printcap
files for browsing by default. Possible values are yes and no.
printcap name This parameter sets the location of the printcap file. Default value is
/etc/printcap.
printing This parameter controls how printer status information is interpreted on your
system. Red Hat Linux uses LPRNG style by default.