Below are suggested parameters to use in smb.conf file of the Samba server to improve operability with Mac OS X clients.Note that some parameters may not work with your version of Samba - read the smb.conf and vfs_fruit man pages (on Linux) for your system.Other than those shown in the [TimeMachineBackup] share below, I recommend you include all parameters in the [Global] section of smb.conf. For ease of copy > paste, a clean smb.conf section is included at the bottom of this page.
Apple extensions ('AAPL') run under SMB2/3 protocol, make that the minimum (probably shouldn't be running SMB1 anyway...) - defaults to SMB2_2 in Samba 4.11+:

Apple extensions require support for extended attributes(xattr) - defaults to yes in Samba 4.9+:
Using Samba: A File and Print Server for Linux, Unix & Mac OS X, 3rd Edition Carter, Gerald, Ts, Jay, Eckstein, Robert on Amazon.com.FREE. shipping on qualifying offers. Using Samba: A File and Print Server for Linux, Unix & Mac OS X, 3rd Edition. Quote from man mount on OS X Yosemite: Note: You should always use the system mount command and never call mountsmbfs directly. – ssc Jun 30 '16 at 12:36 4 @Yashvit: Change the '@' to '%40' – WGroleau Aug 1 '16 at 4:11. Setting up Ubuntu and Windows Hosts. On Ubuntu, put your Ubuntu IP and hostname in the.
Samba Server Mac Os X
Load in modules (order is critical!) and enable AAPL extensions:
How to store OS X metadata:

For additional setting see the manpage vfs_fruit.
Server icon in Finder (added in Samba 4.5):

File cleanup:
For Spotlight backend indexing using Elastisearch (added in Samba 4.12):
See smb.conf for 4.12 for other Elastisearch parameters.Gnome tracker is still available (= tracker) or no indexing (= noindex), the default.

For Time Machine backup share (added in Samba 4.8):
As far as I know, testparm will not validate vfs_fruit parameters. (my server runs an old version of Samba :-), but after you have built your smb.conf, you can check for errors anyway with #: testparm
or #: testparm -v
(which will give you the defaults as well.
Samba For Mac
Here is the smb.conf code - NOTE - THIS IS NOT A COMPLETE SMB.CONF!!!
Mac Os Samba Server
From Finder, connect to your Samba server using 'smb://User@Server'.Note that TM backups over smb may now be possible with your server.Other Mac models can be found in '/System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist'. Use 'Quick Look', Xcode or plutil to view or convert plist.