This option, discussed in greater detail earlier, copies the target file into the current configuration file at the point specified, as shown in
Figure 4.1. This option also takes advantage of the variables specified earlier in the chapter, which is useful in the event that you want load configuration options based on the machine name or user of the client that it connecting. You can use this option as follows:
[global]
include = /usr/local/samba/lib/smb.conf.%m
If the configuration file specified does not exist, the option is ignored. Remember that any option specified previously is overridden. In
Figure 4.1, all three options will override their previous values.
The
include
option cannot understand the variables
%u
(user),
%p
(current share's rout directory), or
%s
(current share) because they are not set at the time the file is read.