Hello Friends
About Samba I am reading the following valuable tutorial:
At the Step 2: Configuring Samba
section appears the following configuration
[sambashare]
comment= Network Shared Folder by Samba Server on Ubuntu
path = /home/your_username/sambashare
force user = smbuser
force group = smbgroup
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
public = yes
read only = no
Observe the relation about:
create mask
withforce create mode
directory mask
withforce directory mode
These two pairs of parameters have the same value.
Question(s)
- Why the
create mask
anddirectory mask
parameters are not enough by themselves? So why exists theforce create mode
andforce directory mode
parameters?
I’ve read in the official documentation of Samba the smb.conf(5) page, where it has the Explanation Of Each Parameter
section. But for these two “force” parameters is not really clear the reason of their existence.