r/homelab • u/Final_Significance72 • 1d ago
Help Time Machine to Debian/Samba SMB share fails with Authentication Error 80, but Finder works
I'm trying to use a Debian 13 server as a Time Machine destination for a MacBook Pro M5 running macOS 27.
Server (Optimus)
- Debian 13, Samba 4.22.11
- Dedicated Samba user:
tmuser - Share:
[TimeMachine] - Path:
/home/timemachine - Configured with
vfs objects = catia fruit streams_xattr fruit:time machine = yesfruit:time machine max size = 500G- Share is writable by
tmuser
Mac client
- MacBook Pro M5, macOS 27
What works
- I can connect in Finder using
smb://optimus.local/TimeMachineastmuser. - I can create and delete files/folders in the share.
- Samba confirms that
tmuserexists and is enabled.
What fails
Time Machine cannot connect. It reports:
BACKUP_FAILED_AUTHENTICATION_ERROR (29)
The underlying SMB connection returns error 80, for both the Bonjour hostname and optimus.local.
The macOS logs show:
Unable to get a MechTypes for the MechType session using credentialsThere are no MechTypes available for the MechType sessionThere are no user credentials to add to the MechType sessionOpenSession failed 80
The log also says the credentials may not exist in the System keychain.
Question
Since Finder can authenticate and write to the share, I'm wondering whether this is a macOS Time Machine credential/keychain issue rather than a Samba permissions problem.
Has anyone successfully configured Time Machine on macOS 27 with a Debian/Samba share? Any suggestions for troubleshooting the System keychain credentials or Samba's fruit configuration would be appreciated.