Hi!
On macOS (Mac M1 hardware) I created a shared folder and let a device use it via SMB with its own user (e.g. "deviceuser").
The software on the device creates the folders and files with that user ("deviceuser") as sole owner and only the owner can read+write.
When the macOS admin user that created and shared that folder ("adminuser") tries to open directories or files created by the device,
a permission error occurs. The admin user first has to assign itself ownership or change the permissions (read everyone) of those folders and files (as root/sudo mode). This is very tedious.
Is it possible to force newly created folders or files to be owned also by the admin user or by a group to which the admin user and the device user both belong (with correct permissions)? I read that ACLs can be used to force this, I also tried a chmod-command to apply ownership/permissions inheritance, but this didn't change the behavior. Do I also have to enable ACLs in general?
Or is there another solution that also works?
Thanks and
with best regards
On macOS (Mac M1 hardware) I created a shared folder and let a device use it via SMB with its own user (e.g. "deviceuser").
The software on the device creates the folders and files with that user ("deviceuser") as sole owner and only the owner can read+write.
When the macOS admin user that created and shared that folder ("adminuser") tries to open directories or files created by the device,
a permission error occurs. The admin user first has to assign itself ownership or change the permissions (read everyone) of those folders and files (as root/sudo mode). This is very tedious.
Is it possible to force newly created folders or files to be owned also by the admin user or by a group to which the admin user and the device user both belong (with correct permissions)? I read that ACLs can be used to force this, I also tried a chmod-command to apply ownership/permissions inheritance, but this didn't change the behavior. Do I also have to enable ACLs in general?
Or is there another solution that also works?
Thanks and
with best regards