Samba for macOS issue (Time Machine server)

Hello,

I like using EndeavourOS alot as a desktop and have used it for development as well as recommended it to friends. Thanks to the EndeavourOS team for such a great distro.

Now, here is my issue:

Context

For a long time, I have been using Linux to provide a Time Machine server for macOS clients.

Historically I have run a netatalk server and allowed all clients to connect via AFS (Apple’s older protocol) to back up to Time Machine, and this setup worked very well.

More recent Time Machine connects via Samba instead of AFS. Starting with the current version of macOS, AFS is no longer supported, so now Time Machine must be via Samba, and I have updated my server accordingly.

The Issue

In EndeavourOS current, with the following config, I couldn’t maintain a steady connection to the Samba server from wired or wireless clients. It would complete a backup after connecting manually, but then subsequent backups would fail because the server could not connect. The server would appear connected via Finder, but would time out if i tried to access it, so I would have to disconnect and reconnect and manually trigger a Time Machine backup.

I ended up trying Debian 13 with the same Samba config, and the Time Machine works as expected (backups every hour without manually mounting the Time Machine share). However I would much prefer to use EndeavourOS, so I would greatly appreciate any insight on what may be leading to the difference in behavior. In EndeavourOS, I was sure to allow Samba in firewall-cmd, but I am not sure if the firewall is the issue here.

There is nothing noteworthy in logs, so i couldn’t figure this out.

Here is my smb.conf:

% cat /etc/samba/smb.conf
[global]
   server role = standalone server
   workgroup = WORKGROUP
   netbios name = FILESERVER
   security = user

   server min protocol = SMB3
   client signing = required

   obey pam restrictions = yes
   pam password change = yes
   unix password sync = yes

   inherit acls = yes
   map to guest = Bad User

[TimeMachine]
   path = /srv/time-machine
   browsable = yes
   read only = no
   guest ok = no
   valid users = @smbusers
   create mask = 0660
   directory mask = 0770
   vfs objects = catia fruit streams_xattr
   fruit:time machine = yes
   fruit:model = TimeCapsule
   fruit:metadata = stream
   fruit:resource = stream

When I had to setup a samba server for macos clients a while ago I found some useful settings here:

I have these settings on my debian samba server and it works flawless:

[global]
#https://www.thedigitalpictureframe.com/installing-samba-on-your-raspberry-pi-buster-and-optimizing-it-for-macos-computers/
client min protocol = SMB2
client max protocol = SMB3
vfs objects = catia fruit streams_xattr
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
security = user
encrypt passwords = yes
server role = standalone server
obey pam restrictions = no
map to guest = never

In your specific case with an arch based server I could think of a new server vs. old client issue. May be you want to test things like client min protocol and client max protocol first.