Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

migoelo

macrumors newbie
Original poster
May 28, 2023
14
1
Hello everyone,

what does a correct smb.conf look like so that I can work with it correctly as a macOS user? In particular, I'm also concerned with the fact that the automatic backup works when editing Numbers/Pages files. It would also be good to be able to store Times Machine backups on the Samba server. I use Debian 12 as the distribution here. Unfortunately, with my current configuration, a warning appears at regular intervals that this is not possible.
Here my smb.conf

Code:
[global]
vfs objects = catia fruit streams_xattr
fruit:aapl = yes
fruit:nfs_aces = no
fruit:copyfile = no
fruit:model = MacSamba
inherit permissions = yes
workgroup = WORKGROUP
multicast dns register = no
server string = %h server (Samba, Ubuntu)
client max protocol = default
client min protocol = SMB2_02
server max protocol = SMB3
server min protocol = SMB2_02
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d

[m9-Dokumente]
comment = Dokumente auf m9
path = /home/michael/Dokumente
valid users = migoelo
read only = no
browsable = yes
guest ok = no
 

mfram

Contributor
Jan 23, 2010
1,311
352
San Diego, CA USA
I have several items in my Samba smb.conf to get my Mac to recognize my Linux Samba server for Time Machine. Pieced together this information from several places on the web.

In my global configuration section I have:
Code:
# Time Machine
ea support = yes
vfs objects = catia fruit streams_xattr
durable handles = yes
kernel oplocks = no
kernel share modes = no
posix locking = no
fruit:advertise_fullsync = true
smb2 leases = yes

map to guest = Bad User

For the Time Machine share I have:
Code:
[timemachine]
   comment = Time Machine
   path = /mnt/timemachine
   writeable = yes
   browseable = yes
   create mask = 0600
   directory mask = 0700
   spotlight = yes
   vfs objects = catia fruit streams_xattr
   fruit:aapl = yes
   fruit:metadata = stream
   fruit:model = MacSamba
   fruit:time machine = yes
   inherit acls = yes

There's also configuration in the Zeroconf daemon. I've using Avahi on my box. Specifically for the /etc/avahi/service/samba.service file I have:
XML:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
 <name replace-wildcards="yes">%h</name>
  <service>
     <type>_adisk._tcp</type>
        <txt-record>sys=waMa=0,adVF=0x100</txt-record>
           <txt-record>dk0=adVN=timemachine,adVF=0x82</txt-record>
            </service>
              <service>
                  <type>_smb._tcp</type>
                      <port>445</port>
                        </service>
                        </service-group>
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.