Modify permissions of files created via SMB in a specific directory
Well, macos support acl's too.

http://ahaack.net/technology/OS-X-Access-Control-Lists-ACL.html

https://www.techrepublic.com/blog/apple-in-the-enterprise/introduction-to-os-x-access-control-lists-acls/

1) I'm not understanding this list too well. Why does SCAN_000275.pdf show up owned by scanaccount?  The user seems to be jstarek. I'd expect ., .DS_STORE, and SCAN_000275.pdf all to be owned by the same user.

/Users/Shared/Scans $ ls -al
total 216
drwxrwxr-x+  4 jstarek      wheel    136 16 Dez 16:41 .
drwxrwxrwt  10 root         wheel    340 16 Dez 16:15 ..
-rw-r--r--@  1 jstarek      wheel   6148 16 Dez 16:34 .DS_Store
-rw-------   1 scanaccount  wheel  99403 16 Dez 16:41 SCAN_000275.pdf


2) Shouldn't you be able to configure SMB to give permissions to let the user access the share?  Isn't this what is done via system preferences via share?

I'd thought this would have worked.



3) My understanding is that group wheel is some privileged group. I wouldn't expect that on a normal user.  I wouldn't be giving wheel any more privileges.  I wouldn't be putting group wheel on an id when you are concerned about security. Is this an admin user?  Why?


  What is the wheel group? The wheel group is a group which limits the
  number of people who are able to su to root. This usually consists of
  a group named “wheel” and a set of users that are permitted to use the
  utility 'su' in order to change to root.Jul 19, 2007 The wheel Group |
  UNIX Administratosphere
  https://administratosphere.wordpress.com/2007/07/19/the-wheel-group/


Interesting project. 

Robert