Unter TrueNAS core sometimes, when I mounted a SMB share under linux, the share was not only “single user”, but it was mounted like a NFS share, with UIDs and GIDs like normal.
With TrueNAS scale this never worked. How can I enable linux extensions with setuids - and how can I mount such a share under linux to use this?
(Please no discussion about using nfs and so on, I really want/have to use SMB in this case - but I did not find a guide or information about this in the manual)
I just found out, if I
- enable SMB1 in the GUI
- do
net conf setparm GLOBAL "unix extensions" Yes
as root on the TrueNAS shell
- mount with mount.cifs -o vers=1.0
It works. Files do have the UID and GID they have on the server. This is what I need.
BUT: Using SMB1 is not a solution. ( https://sambaxp.org/fileadmin/user_upload/sambaxp2023-Slides/French_sXP23_SMB3.1.1_POSIX.pdf )
SMB3 unix extensions was formally added to Samba 4.20 (Electric Eel / 24.10) which is almost in beta, but support will be exposed via API / UI NET TrueNAS SCALE 25.04.