Take your own risk because wide links is explicitly not supported, may not survive after upgrade, and may conflict with the functionalities of SMB share.
- Comment out the parameter blacklists:
cd /usr/lib/python3/dist-packages/middlewared
cp smb.py smb.py.bak
nano smb.py
Comment out the xxx links
lines:
https://github.com/truenas/middleware/blob/c1ef17656d3e4a893a71086db18783bfc05b2460/src/middlewared/middlewared/plugins/smb.py#L1167
- Restart middlewared
systemctl restart middlewared
- Add aux parameters:
cli
to enter CLI interface then, runsharing smb query
to get a list of shares. Note the one you want to edit and look at its id. Then, runsharing smb update id
Editaux_params
:
aux_params:'wide links = yes
follow symlinks = yes'
Tap on F10, close and save. Next, to modify the global options:
service smb update smb_options="allow insecure wide links = yes"
References:
https://www.truenas.com/community/threads/auxiliary-parameters-missed.113938/post-797889