You actually don't have to do that. You can change settings through CLI
If you want to edit params for a particular share, first (via SSH) run:
cli
to enter CLI interface
then, run
sharing smb query
to get a list of shares. Note the one you want to edit and look at its
id.
Then, run
sharing smb update id
where id is the id number of your share.
You will drop into a nano-like text editor, where you remove
# to uncomment the aux conf section, and input your smb config, separated by newlines if there are multiple, like so:
View attachment 73728
Then you click save and quit and it should apply.
And for global options, also while in CLI mode, you run
service smb update smb_options=""
where you put whatever options you desire inside "", separated by \n. For example:
service smb update smb_options="server min protocol = SMB3_11\nworm:grace_period = 86400"