How to Create a Mode in Samba
- 1). Log in to the Linux computer.
- 2). Type "gedit /etc/samba/smb.conf" and press "Enter."
- 3). Scroll to the location in the smb.conf file where your file and folder sharing options are set.
- 4). Type in the space under the desired folder "create mask = maskNumber" -- where "maskNumber" is the permissions code you want to set, such as "0744" or "0777" for "user and group read access" or "user and group all access" respectively.
- 5). Save the smb.conf file by clicking the "Save" button to update and apply the mode.
Source...