Fix regression introduced by fix for sysvol ACL check
I no longer have write access to my smb shares. I can create and read files, but not modify or delete. Even if I do chmod 777 on the files or folders, I'm still unable to delete them from windows explorer. Switching to the user that has ownership of the files in the terminal, permissions work as expected so this is purely via smb.
If I re-set up the shares with "Apply Default Permissions" checked, then it works correctly. However, a + is added to the folder, and a .windows folder is created inside of it even though the folders are set up with Unix Permissions. When I go to check the permissions on the dataset, it is now set to Windows permissions.
I have always used unix permissions, because I access the smb shares from a combination of Windows and Linux VMs, and I like to be able to see and modify what the permissions are directly from the terminal. This is really useful for me especially remotely over vpn via ssh.
Is this new functionality intentional? It essentially makes unix permissions + smb shares unusable. I understand that I could just use windows permissions, but this feels clumsy for me given I've only got a few users, and my permissions requirements aren't very complicated. When I looked into using windows permissions previously, it seemed that permissions could only be modified within windows explorer. (Although I'm aware there are sets of commands other than chmod and chown that I never learned to use that deal with the more complex permission set.)
I have tested this on two different FreeNAS systems that I upgraded to 11.2 U2 today, and they behave identically.
Reverting back to 11.2 release (I skipped 11.2 U1) fixes the issue with no other changes needed. Unix permissions and smb shares work again.
#7 Updated by Joe Maloney over 1 year ago
Please cherry pick your fix and push it to this branch for 11.2-u2.1:
#10 Updated by Jeff Ervin about 1 year ago
- File Screen Shot 2019-02-27 at 9.55.11 AM.png Screen Shot 2019-02-27 at 9.55.11 AM.png added
- File Screen Shot 2019-02-27 at 9.55.24 AM.png Screen Shot 2019-02-27 at 9.55.24 AM.png added
- Status changed from Ready for Testing to Passed Testing
Test Passed FreeNAS-11.2-U2.1
Created a VM with smb shares, verified access/functionality. Updated to 11.2-U2. I could access the smb shares, but I could not make changes (delete files/folders etc.), same issue as referenced above. This lack of functionality was checked on both a Mac (hardware) and Windows10 (VM). Updated to 11.2-U2, SMB functionality returned (files added/deleted etc.) on both the Mac and Win10 systems.
Note: I am leaving the QA box checked as Bonnie will be verifying same on her system(s) as a backup to these findings.