SMB option "hide unreadable = Yes" not available in WebUI (TrueNAS SCALE 24.10)

Hi folks,

After migrating to TrueNAS SCALE, I have found that the SMB option to hide file and folders for users with no access rights was not available in the webUI. This option was activated (by default?) in my previous TrueNAS CORE environment, and I really like it.

I was able to activate it from the command line, using:

midclt call smb.update ‘{“smb_options”: “hide unreadable = Yes”}’

However, I think this would be interesting to be able to set it from the webUI for each share independently, or globally for the SMB service. This could be done by adding a check box, like the already existing “access based share enum” one, or by allowing to provide smb options as a string. Note there is already an “additional parameters string” field in the share options, but it seams to be readonly. Looking at other threads in the forum, I understand there is already a feature request to make this field writeable.

What do you think of it?

Cheers,
Olivier.

To have toggles, checkboxes, and dropdown menus for every possible SMB option would be a mess of a clutter.

Because “Auxiliary Parameters” are not coming back to SCALE, it leaves you with either:

  1. Make a feature request for every option you want exposed in the GUI
  2. Use the midclt commands to blindly set parameters per share, and try to remember them, since there is no GUI for these
  3. Try to convince iX to once again allow Auxiliary Parameters behind a “hidden” option, with a clear warning and disclaimer that it is unsupported and discouraged

Chrome-based web browsers handle point #3 brilliantly.

Just visit the URL chrome://flags, and you will be met with a bold disclaimer that reads:

You are still allowed to access, view, and configure “unsupported” features! They allow you control, at the risk of breakage, which is your own responsibility. I wish iX would allow this for TrueNAS.

Chrome browsers don’t deny their users the ability to configure their browsers because “they might cause breakage.” (I use “flags” on Chrome myself.)

What iX could do is deny any and all bug reports by users who have enabled even a single Auxiliary Parameter. Fair trade.

1 Like

Just write a script that runs the required command on every boot.

@NugentS: no need to run a script on every boot, as the parameter is kept after reboot.

My message was more about making this parameter accessible from the web interface without having to activate it via the command line. Reading the forum posts, it seems that I’m not the only one for whom this parameter is important.

Test the waters with that feature request.

1 Like

The reason I suggested a script was that even after an TN update the script would run and set the parameter you want.