When creating folders and files via SMB, the new items receive more open permissions compared to using CLI or the Files app.
Folders:
$ ls -l /DATA/AppData/
total 3
drwxr-xr-x 2 root root 1024 Jul 23 16:21 created_in_CLI
drwxr-xr-x 2 root root 1024 Jul 23 16:21 created_in_Files
drwxrwxrwx 2 root root 1024 Jul 23 16:21 created_via_SMB
Files:
$ ls -l /DATA/AppData/
total 3
-rw-r--r-- 1 root root 0 Jul 23 16:27 created_in_CLI
-rw-r--r-- 1 root root 0 Jul 23 16:29 copied_via_Files
-rwxrw-rw- 1 root root 4 Jul 23 16:28 created_via_SMB
(Red colors are added automatically by Discourse.)
The created_via_SMB
elements are also highlighted in green in CLI because it is less secure with 777 / 766 permissions.
Please adjust Samba settings accordingly. AFAIK it is done with:
create mask = 0644
directory mask = 0755
Tested with ZimaOS v1.4.2-beta1