|
Options in the Samba configuration files fall into one of two categories:
global or
share. Each category dictates where an option can appear in the configuration file.
-
Global
-
Global options
must appear in the
[global] section and nowhere else. These are options that typically apply to the behavior of the Samba server itself, and not to any of its shares. -
Share
-
Share options can appear in specific shares, or they can appear in the
[global] section. If they appear in the
[global] section, they will define a default behavior for all shares, unless a share overrides the option with a value of its own.
In addition, the values that a configuration option can take can be divided into four categories. They are as follows:
-
Boolean
-
These are simply yes or no values, but can be represented by any of the following:
yes ,
no ,
true ,
false ,
0 ,
1 . The values are case insensitive:
YES is the same as
yes . -
Numerical
-
An integer, hexidecimal, or octal number. The standard
0x
nn syntax is used for hexadecimal and
0
nnn for octal. -
String
-
A string of case-sensitive characters, such as a filename or a username. -
Enumerated list
-
A finite list of known values. In effect, a boolean is an enumerated list with only two values.
|
|