Problems with SMB share permissions on WIN / MAC

I have an problem with TrueNAS Scale I´m using the first time.
Running ElectricEel-24.10.2

I have create a dataset with SMB share enabled.
Two users in a group.
I gave full control to the group.

I mount the shares on both MACs and on every MAC I create a test folder.
So far so good.
Both MACs see the both test folders.
I can not delete a test folder created on MAC A from MAC B or wise versa.
But I can rename the folders and than I´m able to delete the folders.
On Windows I can also not delete the folders, I delete the folder and It seams like it is gone, but on the MACs you still see it and on a reload (F5) of the explorer window of the share the just deleted folder reappears and is no longer accessible.

I tried a lot of things and begin from the scratch wit tutorial of the web and YT.
No way works.
And yes, I have restarted SMB service on all changes I tested.
I only want to have a network share for my MacBooks where both computers have full read/write/exe access.

I tried also to use one user on the SMB share and log in from both MACs with the same user. Same behavior.
I´m running mad with this.

What is the fault or what I´m doing wrong?
Thanks for the help of the community

Hi and welcome to the forums.

Sounds not too dissimilar to this recent thread which was solved Identical user permissions but can't write with 1 user - #4 by Johnny_Fartpants

Hi Johnny,

thank for your quick reply.
I tried the suggestions you gave on the similar case.
But I did not have sucess.
I can not delete folders (and files) created from an group member and/or another system.
I can only rename the folder and delete them afterward.
Actualy I´m in the test phase, but later with a lot of files this is not a workaround.


On dataset the settings are:
Owner: root
Owner Group: Share_Users

ACL entry only this:
Group - Share_User Allow / Full Control


On Shares the settings are (nothing changes since new creation):
ACL Entries
Who: everyone@
Permission: Full
Type: Allowed

I tried now the whole day everything and even not a step further.

I checked the advanced chown for the created folders and see:
Folder_A created from User_A:
Owner: User_A
Group: Share_User
Permissions: - - - r w x - - -
Permissions octal: 40070

Folder_B created from User_B:
Owner: User_B
Group: Share_User
Permissions: - - - r w x - - -
Permissions octal: 40070

When I rename folder B (created from system B with user B) on system A with user A there are no changes visible on advanced chown permissions.
Even the owner does not change.
But I can then delete the folder!!!

I have no Idea what I can do anymore.
I run TrueNAS version: ElectricEel-24.10.2
The clients are MAC OS:13.4.1 and 12.3.1

Thanks for help

Can you share a screenshot of the ACL from the TrueNAS UI.

Try changing the owner group back to root and recursively set permissions.

Not working, still the same.

Did you modify your share ACL? Did you recursively re-stamp permissions?

The share ACL is still like written on #3
There is no recursively option on the share ACL.
But I allways test it with new folders I create on both MACs after any change.
Restart of SMB service I also do on every change.

Lose the share ACL and put it back to default. Recursively apply your new permissions on your dataset and you should be good.

Hi Johnny,
how do I loose the ACL and back to default.
And where should I apply the new permissions.

Actually I have no data on the share.
With each change on the settings I create new testing folders named like the system created the folder and than I try to delete these from the other system.
So recusivly is probably not nessecary.

Just delete the share config and re-create leaving the defaults is probably the quickest way.

If you havent already click recursively set permissions on the dataset when editing the ACL.

Hi Johnny,
I deleted everything (Share, Driveset, Group and Users) and will begin from the scratch.
Should I enable the option “SMB User” and/or “SMB Group” while creating the users and group?
By default the user is enabled, the group is not enabled.
You wrote before: Share ACL is not necessary because of file system rights it is already done.

Your local users will need to be an SMB user yes.

I like to use groups to control permissions so I’d suggest you create a group and call it whatever you like and add your users to that group. Then give that group access to the dataset via the ACL. When you create the dataset make sure you select SMB as a preset. You can leave owner and group owner as root and remove all the other ACL entries and just have your new group added with say modify access. Then share out via SMB using the defaults.

Hi Johnny,

I set up all from the beginning and same result, but…
I create the folder on both systems and in the next moment I try the deleting crosschanged from the other system.
The result is that I can not delete with the message that the file is in usage.
Than I unmount the share on one system and the delete is possible.
That is remakeable, because on all tests I never entered the created folders.
So they were never in an open state or usage.
Is it a behavior of Mac OS systems to hold a finger on the files/folders just created before?

It’s an odd one and not something I’ve seen before. Are you able to introduce a Windows or Linux machine into the mix to see if it’s a Mac specific issue?

I add an Windows system in the network.
I could delete the folder created on Windows with the MAC and on both systems the deleting is visible within the share.
When I delete the folder created on the MAC with the Windows system.
On windows the folder is directly gone, but on the MAC the folder is still visible.
After unmouting and remountig the share on the MAC the folder is also gone.
Very strange.
Looks like the MAC OS is not updating the share directory.
I will make more tests with that behavior.
But the file in usage message is not there.