The
copy
configuration option allows you to clone the configuration options of the share name that you specify in the current share. The target share must appear earlier in the configuration file than the share that is performing the copy. For example:
[template]
writable = yes
browsable = yes
valid users = andy, dave, peter
[data]
path = /usr/local/samba
copy = template
Note that any options in the share that invoked the
copy
directive will override those in the cloned share; it does not matter whether they appear before or after the
copy
directive.