[Solved] Help with access-based enumeration in Truenas Scale 24.10

Hello everyone! I’m setting up a file server with TrueNAS Scale to migrate from an OpenMediaVault on a client that is in the same way as I’m trying to implement with TrueNAS, but with TrueNAS the enumeration doesn’t work even when activated in the Samba Share.

In the current structure I have a directory called “arquivos” shared with Domain Users and in the ACL section I placed it as shown in the image below, with multiple datasets, one for each sector.


In the child folders that are the folders of the company’s sectors, I placed the ACLs as follows:

I went to the “arquivos” share in Samba and activated the access-based enumeration, as you can see in the image:

However, when I access it via \arquivos\arquivos, all the folders appear for the user of the RH group, for example, and when this user tries to access the TI group folder, it gives a permission error.

If anyone knows what may be causing this problem, I would appreciate your help. I spent 6 hours yesterday trying to resolve this and I couldn’t.

After reading a lot on Google about the problem, I thought that using the hide unreadable = yes parameter in Share would work, but it seems that TrueNAS Scale removed the option to add extra parameters in Samba from what I could understand.

Until last year it seemed that using the command: midclt call smb.update ‘{“smb_options”: “hide unreadable = Yes”}’ was able to activate the functionality, but now it no longer works. =(

Guys, the command apparently worked: midclt call smb.update ‘{“smb_options”: “hide unreadable = Yes”}’
The problem I was having is that I copied and pasted it, but in the TrueNAS forum command the quotation marks were encoded incorrectly and gave an error when passing through the TrueNAS API! I tried typing it manually and it worked, now only the necessary folders are showing up.