SMB Share not honoring permissions/ACL for new items

StevoFNF

Cadet
Joined
May 7, 2021
Messages
8
I have no idea when this started for me but I only noticed it at least since updating to the latest beta. Currently running
TrueNAS-SCALE-21.08-BETA.1

I have the following users and groups set up that are pertinent to this:
User: Stevo
Group: Residents

My Shared Media dataset has the following Unix ACL. I did the Strip ACL process right before this to ensure nothing was being messy from the update:
Owner: Stevo. Permissions: RWX
Group: Reisdents. Permissions: RWX
Everyone Permissions: R-X
I selected recursive permissions setting and traverse.

My SMB share for Shared Media is at default share setting. The dataset ACL mode is set to restricted, though at this time there is no ACL set.

As far as I can tell, all files and folders that already exited when I did the strip and reset look as expected. Example contents of folder Shared Media\chd:

truenas# ls -la
total 1148
drwxrwxr-x 2 TRUENAS\stevo Residents 7 Oct 2 04:37 .
drwxrwxr-x 28 TRUENAS\stevo Residents 122 Sep 30 16:41 ..
-rwxrwxr-x 1 TRUENAS\stevo Residents 71 Dec 24 1996 'chdman - CUE or GDI to CHD.bat'
-rwxrwxr-x 1 TRUENAS\stevo Residents 65 Dec 24 1996 'chdman - Extract CHD to CUE.bat'
-rwxrwxr-x 1 TRUENAS\stevo Residents 65 Dec 24 1996 'chdman - Extract CHD to GDI.bat'
-rwxrwxr-x 1 TRUENAS\stevo Residents 2023424 Sep 24 2019 chdman.exe
-rwxrwxr-x 1 TRUENAS\stevo Residents 65 Oct 8 2019 convert_to_chd.bat

Now this is what happens as soon as I copy something over to that location.

truenas# ls -la
total 1155
drwxrwxr-x 2 TRUENAS\stevo Residents 8 Oct 2 04:39 .
drwxrwxr-x 28 TRUENAS\stevo Residents 122 Sep 30 16:41 ..
-rwxrwxr-x 1 TRUENAS\stevo Residents 71 Dec 24 1996 'chdman - CUE or GDI to CHD.bat'
-rwxrwxr-x 1 TRUENAS\stevo Residents 65 Dec 24 1996 'chdman - Extract CHD to CUE.bat'
-rwxrwxr-x 1 TRUENAS\stevo Residents 65 Dec 24 1996 'chdman - Extract CHD to GDI.bat'
-rwxrwxr-x 1 TRUENAS\stevo Residents 2023424 Sep 24 2019 chdman.exe
-rwxrwxr-x 1 TRUENAS\stevo Residents 65 Oct 8 2019 convert_to_chd.bat
-rw-rw-rw- 1 TRUENAS\stevo builtin_users 5067 Aug 16 2020 gistfile1.txt

Not only is it not setting the permissions correctly, it is changing the group to builtin_users which I have not even configured or until today knew existed.

Any help would be greatly appreciated.

Edit: Forgot to clarify, I am adding this file from Windows logged in as user Stevo, with the same password as the truenas account and my user is also a member of the Residents group, so it should have Full Control permissions twice over.
 

Attachments

  • nas1.png
    nas1.png
    42.8 KB · Views: 199
  • nas2.png
    nas2.png
    34.1 KB · Views: 196
Last edited:

shimian5

Dabbler
Joined
Dec 16, 2014
Messages
43
I am having the same issue. Is this resolved in 22.02RC2? I see the merge was complete, but I also see additional changes in December.
 

shimian5

Dabbler
Joined
Dec 16, 2014
Messages
43
OP - your issue is your group name is capitalized. make Residents residents instead and it will work. The GUI shouldn't be allowing capital letters in groups, but it does. I have an open JIRA ticket for this.
 
Top