This option sets the permission bits that Samba will force to be set when a file permission change is made. It's often used to force group permissions, mentioned previously. It can also be used to preset any of the DOS attributes we mentioned: archive (0100), system (0010), or hidden (0001). This option always takes effect after the
map
archive
,
map
system
,
map
hidden
, and
create
mask
options.
Many Windows applications rename their data files to
datafile.bak and create new ones, thus changing their ownership and permissions so that members of the same Unix group can't edit them. Setting
force create mask = 0660
will keep the new file editable by members of the group.