Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
These commands resolved the issue for me.. until the next reboot. Still weird that they worked once though

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/sbin/smbd sudo /usr/libexec/ApplicationFirewall/socketfilterfw --unblockapp /usr/sbin/smbd
 

Access to your account on the server ... has been denied

Ok I'm going to share what works for me as I spent weeks, probably months, trying to fix this network file sharing issue.
I have several Mac mini M1 & Intel, the mini M1 acting as file server stopped sharing when updated to macOS 13.2 if I recall correctly. Sharing between the other Macs was working ok. I tried all the tips posted online: reset passwords, try new accounts, turn sharing off/on, remove sharing, reboot million times, nothing work. I was alway hoping Apple will fix this in the next release, as it did work for years. Yesterday I updated to macOS 14, and sharing was still not working for me:
1696792843976.png


So I spent more time on Google and finally found this post:
https://apple.stackexchange.com/questions/426769/file-sharing-always-given-authentication-errors
describing exactly my symptoms... and linking to another post
and an answer from Ortwin Gentz suggesting to add the user to the SMB service access control list (SACL) with this Apple Technote https://support.apple.com/en-ca/HT210659 providing the solution!

Get the guid for the username with:
dscl /Search read /Users/<username> GeneratedUID

then add the user to the smb service with two commands:
sudo dscl /Local/Default append Groups/com.apple.access_smb GroupMembership <username>
sudo dscl /Local/Default append Groups/com.apple.access_smb GroupMembers <guid>

And voila, network file sharing works again for my stubborn Mac mini M1. Don't ask me why you need to do this manually, as mentioned by Ortwin, the Mac File Sharing window should do this.

Good luck, I hope it works for you.
 
Thanks for this, can be useful for sure. Quick question, is the Firewall enabled on your Macs?

I had the problem with Sonoma too. I finally fixed with a clean install (complete reformat of the drive and backup from Time Machine, except network settings). But I noticed that if I enable firewall in all my M1 Macs around the house file sharing stops working. So maybe that was the culprit all along
 
no I didn't try such third party solution, I was expecting a basic Mac feature to work reliably, now it does
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.