Hi everyone, the solution from editor1979 only solve the problem of turn on the smbd and AFP enable share. I'm trying to share a external USB HDD from Mac Mini with MacOS Catalina to use for Time Machine, my client Mac is a Macbook Pro 16" (intel) with Sonoma.
With the editor1979 solution I get to share a disk or folder, but when I try to use to activate a Time Machine from the Macbook Pro with Sonoma with that disk appears this error: The operation couldn’t be completed. (com.apple.TimeMachine.SettingsExtension error 5.)
Searching a solution I found the problem is a security update in MacOS Catalina that change permissions on "smbd" program.
A solution for this is give permissions to smbd to read/write all complete disk:
- Open system Preferences
- Security & Privacy
- Privacy tab
- Full Disk Access
- Click on "+" to add an entry (if you can't click the "+" icon, make click on the padlock and authenticate with an administrator account or just type your password)
- Press Command + Shift + g (or Command + G , see the G is uppercase)
- copy or type this: /usr/sbin to go to sbin folder, click o go
- find and choose "smbd" file
- See that recent added "smbd" is checked
- Done! your share disk is Ok to use in Time Machine client.
I found the solution in this link thanks to VideoBeagle user: https://forums.macrumors.com/threads/cant-connect-to-mounted-usb-drives-over-network-after-catalina-upgrade.2357001/
You can apply this for the AFP (AppleFileServer) program too.
Remember that you can share APFS disk only with smbd, AFP ins't supported anymore for disks formatted with APFS.
I hope this helps.