Steven Foucault
2019-Dec-25 19:43 UTC
[Samba] Duplicate entry in macOS "Network" when using Samba 4.9.1 and avahi 0.7
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 --------------
Reindl Harald
2019-Dec-25 20:27 UTC
[Samba] Duplicate entry in macOS "Network" when using Samba 4.9.1 and avahi 0.7
Am 25.12.19 um 20:43 schrieb Steven Foucault via samba:> ##################################### > 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> > #####################################not that i own a Mac lcient but nobody has complaiend here facing a server twice, remove "mdns name = mdns" and probably don#t hardcode the name [root at localhost:~]$ cat /etc/avahi/services/smb.service <?xml version="1.0" standalone='no'?><!--*-nxml-*--> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">%h</name> <service> <type>_smb._tcp</type> <port>445</port> </service> <service> <type>_device-info._tcp</type> <port>0</port> <txt-record>model=RackMac</txt-record> </service> </service-group>