[Samba] Duplicate entry in macOS "Network" when using Samba 4.9.1 and avahi 0.7

Steven Foucault telesteven90 at gmail.com
Wed Dec 25 19:43:17 UTC 2019


Hi.
I configured a simple samba server. As I need this server to be available in macOS “Network” list, I configured avahi.
When I start smb.service and avahi-daemon.service I get two results in the “Network” section.
When I don’t use avahi I get no entry.
Why are there two entries and which best practice can I use to have only one entry?

Thanks!
Steven


#####################################
cat /etc/avahi/services/samba.service 
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">BackupAVAHI</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>
#####################################
cat /etc/samba/smb.conf
[global]
    netbios name = Backup-Server
    server string = Backup-Server
    workgroup = local
    mdns name = mdns
    log file = /var/log/samba/log.smb
    max log size = 1000
    syslog = 0
    server role = standalone server
    unix password sync = no
    min protocol = SMB2 
    ea support = yes
    vfs objects = catia fruit streams_xattr
    fruit:aapl = yes
    readdir_attr:aapl_rsize = yes
    readdir_attr:aapl_finder_info = yes
    readdir_attr:aapl_max_access = yes
    fruit:nfs_aces = yes
    fruit:copyfile = yes
    fruit:metadata = netatalk
    fruit:resource = file
    fruit:locking = none
    fruit:encoding = private
    unix extensions = yes
    spotlight = yes
    smb2 leases = yes
    aio read size = 1
    aio write size = 1
    kernel oplocks = no
    use sendfile = yes
    strict sync = yes
    sync always = no
    delete veto files = true
    fruit:veto_appledouble = yes
    fruit:posix_rename = yes 
    fruit:zero_file_id = yes
    fruit:wipe_intentionally_left_blank_rfork = yes 
    fruit:delete_empty_adfiles = yes 
    disable netbios = yes
    dns proxy = no
    smb ports = 445


-------------- next part --------------



More information about the samba mailing list