Webux Lab - Blog
Webux Lab Logo

Webux Lab

By Studio Webux

Search

By Tommy Gingras

Last update 2026-05-26

macOSNASTime MachineFedora

MacOS X NAS X Time Machine

Using Fedora 40 for the samba share.

sudo vi /etc/samba/smb.conf

[global]
   workgroup = WORKGROUP
   server string = NAS
   security = user
   passdb backend = tdbsam
   min protocol = SMB2
   server min protocol = SMB2

   # Apple extensions — order matters, fruit must come after catia/streams_xattr in some versions
   vfs objects = catia fruit streams_xattr
   fruit:aapl = yes
   fruit:metadata = stream
   fruit:model = TimeCapsule6,106
   fruit:posix_rename = yes
   fruit:veto_appledouble = no
   fruit:nfs_aces = no
   fruit:wipe_intentionally_left_blank_rfork = yes
   fruit:delete_empty_adfiles = yes

[timemachine]
   path = /mnt/nas/timemachine
   valid users = replace_with_your_user
   browseable = yes
   writable = yes
   create mask = 0664
   directory mask = 0775
   fruit:time machine = yes
   fruit:time machine max size = 1T

sudo systemctl restart smb nmb avahi-daemon

Then connect the MacOS using smb://192.168.20.105, and select the timemachine share.

To make it persistent, go to your Settings > General > Login Items & Extensions and add the volume.

Then open time machine, or use the CLI:

sudo tmutil setdestination -ap "smb://[email protected]/timemachine"
# type the password you set while setting up the SMB

Troubleshoot

tmutil status
tmutil currentphase

log stream --predicate 'subsystem == "com.apple.TimeMachine"' --info
# the logs are kinda scary, but if the tmutil status is good, then you're good.
# If your mac has a name with non standard characters (like the default "user's macbook") you are probably gonna have issues at some point. Can't prove it was that, but renaming my macos to "broken" fixed the issue...

Good to know (I guess)

Yes, I still see this message: {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

With the default MacOS name it worked for about 1-2 months, then it started returning OSStatus error 80 out of nowhere. I did not investigate anything.