System information

Chapter 4. Installing and configuring Samba 61
The parameters are described in Table 4-4.
Table 4-4 Name resolution parameters
Defining shares
The previous sections covered the general configuration parameters. In this and the next four
sections, we will explain the parameters used in defining shared resources.
A simple share definition in the smb.conf file looks similar to Example 4-5.
Example 4-5 Redbook share parameters
[redbook]
comment = Redbook files
path = /redbook
browseable = yes
printable = no
writable = yes
write list = @users
Table 4-5 describes the most important parameters for defining a share.
Table 4-5 Share parameters
Parameter Description
name resolve order This parameter determines which naming services to use and the
order used to resolve host names to IP addresses. The preferred value
is wins lmhosts bcast. See the smb.conf manual page for more
information.
wins support This parameter controls whether the Samba server will act as a WINS
server. Default value is no.
wins server The WINS server IP address that Samba should register with and use.
Only used with wins support parameter: set to no.
Note: Samba can act as a WINS server or a WINS client, but not both. So only one of the
parameters (wins support or wins server) can be set at the same time. If you specify the IP
address of WINS server, then wins support must be set to no.
Parameter Description
comment Discription of the share.
admin users List of users who have administrative privileges on the share. These users
can perform all operations with root authority.
path The full path to the directory being shared.
browsable Controls whether this share is seen in the list of available shares in a net
view and in the browse list. Possible values are yes and no. Default value is
yes.
printable Specifies whether this is a print share. Possible values are yes and no.
Default is no.
write list List of users that have write access to the share. Can include group names
using the @group syntax.
writable Controls whether the share is writable. Possible values are yes and no.