Mac OS File Sharing

Mac OS by default shares user home directories and volumes. There is no way in the GUI to disable this. Apply the changes listed below and either disable then enable file sharing or reboot your Apple computer.

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server VirtualAdminShares -bool NO

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server VirtualHomeShares -bool NO