Remove/Purge all packages you installed manually. Delete /etc/samba folder and its contents and then install samba server from the App Store.
Or if you prefer the command line the answer to your 2015 question is still valid.
Remove/Purge all packages you installed manually. Delete /etc/samba folder and its contents and then install samba server from the App Store.
Or if you prefer the command line the answer to your 2015 question is still valid.