Why is my mac sharing the macintosh disk, and home folder?
You can remove all the default shares easily from the system preferences. Search for sharing and then configure (by selecting and then pressing the - ) to remove each share you don’t want to be active.

Then you can leave sharing on and just add the specific shares you want.

Here is an article with a picture showing what you would select and then use the + - control below the shared folder to remove that specific share.


https://support.apple.com/en-us/HT204445


If you granted more permissions editing the config file and didn’t save a backup copy, you can recover an unmodified  version of that from back up or from the installer / recovery HD as well.