to smb-user.conf it will not work.
Same for other global settings.
This looks like a bug in samba conf parser.
It will work if you remove the include of the smb-shares.conf inside of the smb-global.conf and put this include at the end of the smb-user.conf
But this not a solution and cause issues if the user has added some settings.
If you add this:
workgroup = <ANY WORGROUP NAME>
to smb-user.conf it will not work. Same for other global settings.
This looks like a bug in samba conf parser. It will work if you remove the include of the smb-shares.conf inside of the smb-global.conf and put this include at the end of the smb-user.conf
But this not a solution and cause issues if the user has added some settings.
Any solutions are welcome.