How to create a sharing-only user in macOS to limit access

It’s easy to share files across a local network with macOS, including making a Time Machine volume available to other users. However, you don’t have…