There are plenty of other model strings that should work as values; I believe they are directly read from /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist.

Browsing through that file, you should be able to intuit valid values. For example, from the line

UTTypeTagSpecification = { com.apple.device-model-code = ( "Macmini", "Macmini5", "Macmini6", "Macmini7" ); };

I deduced that the proper string for the Mac Mini is Macmini (no CamelCase). MacBook should work, though. As should AppleTV, MacBook5,2, and many more appearing in the aforementioned file.

Answer from Leeron R on askubuntu.com
🌐
Samba
samba.org › samba › docs › current › man-html › vfs_fruit.8.html
vfs_fruit
This option defines the model string inside the AAPL extension and will determine the appearance of the icon representing the Samba server in the Finder window. The default is MacSamba. The following options can be set either in the global smb.conf section or per share.
Top answer
1 of 3
7

There are plenty of other model strings that should work as values; I believe they are directly read from /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist.

Browsing through that file, you should be able to intuit valid values. For example, from the line

UTTypeTagSpecification = { com.apple.device-model-code = ( "Macmini", "Macmini5", "Macmini6", "Macmini7" ); };

I deduced that the proper string for the Mac Mini is Macmini (no CamelCase). MacBook should work, though. As should AppleTV, MacBook5,2, and many more appearing in the aforementioned file.

2 of 3
5

One can use the following python script to get the latest available models.

import plistlib
from contextlib import suppress

types = plistlib.load(open("/System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist", "rb"))

models = []
for uttype in types['UTExportedTypeDeclarations']:
    with suppress(KeyError):
        model = uttype['UTTypeTagSpecification']['com.apple.device-model-code']
        if isinstance(model, str):
            models.append(model)
        else:
            models.extend(model)
fmt = ""
i = 4
models.sort()
prev = models[0][:i]

for model in models:
    if prev != (prev:=model[:i]):
        fmt += "\n\n"
    fmt += f"{model}, "
    
print(fmt)

The currently available values for the 'fruit:model' parameter are:

ADP2,1, 

ADP3,2, 

ATVRemote1,1, ATVRemote1,2, 

AirPods1,1, AirPods1,2, AirPods1,3, AirPodsMax1,1, AirPodsPro1,1, AirPort, AirPort4, AirPort4,102, AirPort4,107, AirPort5, AirPort5,104, AirPort5,105, AirPort5,108, AirPort5,114, AirPort5,117, AirPort6, AirPort6,106, AirPort7,120, 

AppleDisplay2,1, AppleTV, AppleTV1,1, 

BeatsFitPro1,1, BeatsSolo3,1, BeatsSoloPro1,1, BeatsStudio3,2, BeatsStudioBuds1,1, BeatsX1,1, BeatsX2,1, 

D201AP, D201AP, D201AP, 

D20AP, D20AP, D20AP, 

D211AP, D211AP, D211AP, 

D21AP, D21AP, D21AP, 

D221AP, D221AP, 

D22AP, D22AP, 

Device1,21760, Device1,8202, Device1,8208, Device1,8209, Device1,8211, 

K48AP, 

Laptop, 

M68AP, 

Mac, 

Mac13,1, Mac13,2, Mac14,2, Mac14,2@ECOLOR=1, Mac14,2@ECOLOR=2, Mac14,2@ECOLOR=7, Mac14,2@ECOLOR=8, Mac14,7, Mac14,7@ECOLOR=1, Mac14,7@ECOLOR=2, 

MacBook, MacBook1,1, MacBook1,1,Black, MacBook1,1,White, MacBook10,1@ECOLOR=157,157,160, MacBook10,1@ECOLOR=217,180,154, MacBook10,1@ECOLOR=225,225,223, MacBook10,1@ECOLOR=232,201,195, MacBook10,1@ECOLOR=235,215,191, MacBook2,1, MacBook2,1,Black, MacBook2,1,White, MacBook3,1, MacBook3,1,Black, MacBook3,1,White, MacBook4,1, MacBook4,1,Black, MacBook4,1,White, MacBook5,1, MacBook5,2, MacBook6,1, MacBook7,1, MacBook8,1, MacBook8,1@ECOLOR=155,158,159, MacBook8,1@ECOLOR=157,157,160, MacBook8,1@ECOLOR=225,225,223, MacBook8,1@ECOLOR=235,215,191, MacBook9,1, MacBook9,1@ECOLOR=157,157,160, MacBook9,1@ECOLOR=225,225,223, MacBook9,1@ECOLOR=232,201,195, MacBook9,1@ECOLOR=235,215,191, MacBookAir, MacBookAir1,1, MacBookAir10,1, MacBookAir10,1@ECOLOR=1, MacBookAir10,1@ECOLOR=2, MacBookAir10,1@ECOLOR=3, MacBookAir2,1, MacBookAir3,1, MacBookAir3,2, MacBookAir4,1, MacBookAir4,2, MacBookAir5,1, MacBookAir5,2, MacBookAir6,1, MacBookAir6,2, MacBookAir7,1, MacBookAir7,2, MacBookAir8,1, MacBookAir8,1@ECOLOR=157,157,160, MacBookAir8,1@ECOLOR=217,180,154, MacBookAir8,1@ECOLOR=225,225,223, MacBookAir8,2, MacBookAir8,2@ECOLOR=157,157,160, MacBookAir8,2@ECOLOR=217,180,154, MacBookAir8,2@ECOLOR=225,225,223, MacBookAir9,1, MacBookAir9,1@ECOLOR=157,157,160, MacBookAir9,1@ECOLOR=217,180,154, MacBookAir9,1@ECOLOR=225,225,223, MacBookPro, MacBookPro1,1, MacBookPro1,2, MacBookPro10,1, MacBookPro10,2, MacBookPro11,1, MacBookPro11,2, MacBookPro11,3, MacBookPro11,4, MacBookPro11,5, MacBookPro12,1, MacBookPro13,1, MacBookPro13,1@ECOLOR=157,157,160, MacBookPro13,1@ECOLOR=225,225,223, MacBookPro13,2, MacBookPro13,2@ECOLOR=157,157,160, MacBookPro13,2@ECOLOR=225,225,223, MacBookPro13,3, MacBookPro13,3@ECOLOR=157,157,160, MacBookPro13,3@ECOLOR=225,225,223, MacBookPro14,1, MacBookPro14,1@ECOLOR=157,157,160, MacBookPro14,1@ECOLOR=225,225,223, MacBookPro14,2, MacBookPro14,2@ECOLOR=157,157,160, MacBookPro14,2@ECOLOR=225,225,223, MacBookPro14,3, MacBookPro14,3@ECOLOR=157,157,160, MacBookPro14,3@ECOLOR=225,225,223, MacBookPro15,1, MacBookPro15,1@ECOLOR=157,157,160, MacBookPro15,1@ECOLOR=225,225,223, MacBookPro15,2, MacBookPro15,2@ECOLOR=157,157,160, MacBookPro15,2@ECOLOR=225,225,223, MacBookPro15,3, MacBookPro15,3@ECOLOR=157,157,160, MacBookPro15,3@ECOLOR=225,225,223, MacBookPro15,4, MacBookPro15,4@ECOLOR=157,157,160, MacBookPro15,4@ECOLOR=225,225,223, MacBookPro16,1, MacBookPro16,1@ECOLOR=157,157,160, MacBookPro16,1@ECOLOR=225,225,223, MacBookPro16,2, MacBookPro16,2@ECOLOR=157,157,160, MacBookPro16,2@ECOLOR=225,225,223, MacBookPro16,3, MacBookPro16,3@ECOLOR=157,157,160, MacBookPro16,3@ECOLOR=225,225,223, MacBookPro16,4, MacBookPro16,4@ECOLOR=157,157,160, MacBookPro16,4@ECOLOR=225,225,223, MacBookPro17,1, MacBookPro17,1@ECOLOR=1, MacBookPro17,1@ECOLOR=2, MacBookPro18,1, MacBookPro18,1@ECOLOR=1, MacBookPro18,1@ECOLOR=2, MacBookPro18,2, MacBookPro18,2@ECOLOR=1, MacBookPro18,2@ECOLOR=2, MacBookPro18,3, MacBookPro18,3@ECOLOR=1, MacBookPro18,3@ECOLOR=2, MacBookPro18,4, MacBookPro18,4@ECOLOR=1, MacBookPro18,4@ECOLOR=2, MacBookPro2,1, MacBookPro2,2, MacBookPro3,1, MacBookPro4,1, MacBookPro5,1, MacBookPro5,2, MacBookPro5,3, MacBookPro5,4, MacBookPro5,5, MacBookPro6,1, MacBookPro6,2, MacBookPro7,1, MacBookPro8,1, MacBookPro8,2, MacBookPro8,3, MacBookPro9,1, MacBookPro9,2, 

MacPro, MacPro1,1, MacPro2,1, MacPro3,1, MacPro4,1, MacPro5,1, MacPro6,1, MacPro7,1, MacPro7,1@ECOLOR=225,225,223, MacPro7,1@ECOLOR=226,226,224, 

Macintosh, 

Macmini, Macmini1,1, Macmini2,1, Macmini3,1, Macmini4,1, Macmini5, Macmini6, Macmini7, Macmini8,1, Macmini9,1, 

N18AP, 

N45AP, 

N72AP, 

N81AP, 

N82AP, 

N88AP, 

N90AP, 

Pencil1,1, 

PowerBeats3,1, PowerBeats4,1, PowerBook, PowerBook3,2, PowerBook3,3, PowerBook3,4, PowerBook3,5, PowerBook5,1, PowerBook5,2, PowerBook5,3, PowerBook5,4, PowerBook5,5, PowerBook5,6, PowerBook5,7, PowerBook5,8, PowerBook5,9, PowerBook6,1, PowerBook6,2, PowerBook6,3, PowerBook6,4, PowerBook6,5, PowerBook6,7, PowerBook6,8, PowerMac, PowerMac10,1, PowerMac10,2, PowerMac11,2, PowerMac11,2,Quad, PowerMac12,1, PowerMac3,5, PowerMac3,6, PowerMac4,2, PowerMac4,4, PowerMac4,5, PowerMac6,1, PowerMac6,3, PowerMac6,4, PowerMac7,2, PowerMac7,3, PowerMac8,1, PowerMac8,2, PowerMac9,1, PowerbeatsPro1,1, 

RackMac, RackMac1,1, RackMac1,2, RackMac3,1, RackMount, 

TimeCapsule, TimeCapsule6, TimeCapsule6,106, TimeCapsule6,109, TimeCapsule6,113, TimeCapsule6,116, TimeCapsule8,119, 

Tower, 

VMWare, 

VirtualMac, 

Watch, 

Windows, Windows2000, Windows2003, Windows2008, Windows7, WindowsVista, WindowsXP, 

Xserve, Xserve1,1, Xserve2,1, Xserve3,1, 

iMac, iMac10,1, iMac11,1, iMac11,2, iMac11,3, iMac12,1, iMac12,2, iMac13,1, iMac13,2, iMac13,3, iMac14,1, iMac14,2, iMac14,3, iMac14,4, iMac15,1, iMac16,1, iMac16,2, iMac17,1, iMac18,1, iMac18,2, iMac18,3, iMac19,1, iMac19,2, iMac20,1, iMac20,2, iMac21,1, iMac21,1@ECOLOR=1, iMac21,1@ECOLOR=3, iMac21,1@ECOLOR=4, iMac21,1@ECOLOR=5, iMac21,1@ECOLOR=6, iMac21,1@ECOLOR=7, iMac21,1@ECOLOR=8, iMac21,2, iMac21,2@ECOLOR=1, iMac21,2@ECOLOR=4, iMac21,2@ECOLOR=5, iMac21,2@ECOLOR=6, iMac4,1, iMac4,2, iMac5,1, iMac5,2, iMac6,1, iMac7,1, iMac8,1, iMac9,1, iMacPro1,1, 

iPad, iPad1,1, 

iPhone, iPhone, iPhone, iPhone, iPhone, iPhone, iPhone, iPhone, iPhone, iPhone1,1, iPhone1,2, iPhone10,1, iPhone10,1, iPhone10,1, iPhone10,2, iPhone10,2, iPhone10,2, iPhone10,3, iPhone10,3, iPhone10,4, iPhone10,4, iPhone10,4, iPhone10,5, iPhone10,5, iPhone10,5, iPhone10,6, iPhone10,6, iPhone2,1, iPhone3,1, 

iPod, iPod1,1, iPod2,1, iPod3,1, iPod4,1,

Remember to restart samba and avahi:

sudo service smbd restart
sudo avahi-daemon -k

As well as your Finder by clicking on the Finder while holding Ctrl + Option in that order.

I also had to put the 'fruit:model' parameter in the global section of my 'smb.conf'.

Discussions

Recommended Samba configuration for Mac
Hi@all, The Samba wiki recommends the following settings for MACOS: [Global] vfs objects = fruit streams_xattr fruit:metadata = stream fruit:model = MacSamba fruit:posix_rename = yes fruit:veto_appledouble = no fruit:nfs_aces = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delet... More on help.univention.com
🌐 help.univention.com
0
0
October 14, 2022
Add support for user-configurable fruit:model in the samba addon
I think it would be fun if home-assistant would be displayed as an actual homepod in macOS network view, so I propose having users be able to set their own fruit:model in the config file. More on community.home-assistant.io
🌐 community.home-assistant.io
0
0
May 8, 2025
SMB shares: what determines macOS Finder icon?
Here is a page on the samba.org Wiki where some modifications of the samba config file are listed, including 'fruit:model = MacSamba' I have a feeling if I manually edit that using the command line on my FreeNAS that it will only work as long as the next upgrade (if that). More on truenas.com
🌐 truenas.com
26
March 21, 2019
SMB options - vfs fruit:model
As a long-time Linux user I have never heard of MacSamba. Please elaborate. While you're at it, please include your operating system and hardware information. Thanks! More on reddit.com
🌐 r/linuxquestions
4
1
May 16, 2019
🌐
George Mandis
george.mand.is › 2024 › 10 › til-there-are-apple-specific-samba-server-configuration-settings
TIL there are Apple-specific Samba server configuration settings • George Mandis
October 20, 2024 - By setting fruit:metadata = stream and fruit:model = Macmini the server better mimics macOS file storage behavior and the icon that appears next to the machine in Finder.
🌐
MARC
marc.info
'[PATCH] Display computer symbol in MacOs Finder when using vfs_fruit' - MARC
Thanks, Guenther -- Günther Deschner GPG-ID: 8EE11688 Red Hat gdeschner@redhat.com Samba Team gd@samba.org ["mac.patch" (text/x-patch)] From 7f1e74a83f2c31d9a0eaa9eccbadc4686647b96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> Date: Wed, 28 Jun 2017 18:10:28 +0200 Subject: [PATCH] fruit: add fruit:model = <modelname> parametric option.
🌐
GitHub
gist.github.com › fschiettecatte › 02d61e3d36c5f8d36bd45586fc5d0dc7
Setting up SAMBA for Linux / MacOS · GitHub
# Reported to Apple as FB11738061, reported as fixed? on Oct 16, 2025 # Present in macOS 14 (Sonoma) (Accessing Linux Samba 4.20.x) # Present in macOS 15 (Sequoia) (Accessing Linux Samba 4.21.x) # Fixed? in macOS 26.2 (Tahoe) (Accessing Linux Samba 4.22.x) # kernel oplocks = yes # Added for Mac Client support # https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X # https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html min protocol = SMB3 ea support = yes vfs objects = fruit streams_xattr fruit:metadata = stream fruit:model = MacSamba fruit:veto_appledouble
🌐
Reddit
reddit.com › r/samba › [deleted by user]
[deleted by user] : r/samba
August 18, 2021 - plutil -p /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist | grep -A 1 "device-model-code" ... (I assume you've long-since solved this problem, but this reddit post is high on the google search results for fruit:model, so maybe this can help someone else in the future)
🌐
Al4
blog.al4.co.nz › 2024 › 04 › samba-config-for-apple-time-machine
Samba config for Apple Time Machine | Al4
April 4, 2024 - In /etc/samba/smb.conf under the [global] section, I have the following (not complete config, just the relevant settings): protocol=SMB3 vfs objects = acl_xattr fruit streams_xattr aio_pthread fruit:aapl = yes fruit:model = MacSamba fruit:posix_rename = yes fruit:metadata = stream fruit:nfs_aces = no recycle:keeptree = no oplocks = yes locking = yes
Find elsewhere
🌐
R-Digital
reifschneider.digital › blog › ultimate-guide-samba-time-machine-backups
Ultimate Guide to Configuring Samba for Time Machine Backups on Debian Servers | Blog | R-Digital
November 1, 2024 - Open your Samba configuration file: ... [global] security = user wide links = yes unix extensions = no vfs object = acl_xattr catia fruit streams_xattr fruit:nfc_aces = no fruit:aapl = yes fruit:model = MacSamba fruit:posix_rename = yes fruit:metadata = stream fruit:delete_empty_adfiles = yes fruit:veto_appledouble = no spotlight = yes
🌐
SambaWiki
wiki.samba.org › index.php › Configure_Samba_to_Work_Better_with_Mac_OS_X
Configure Samba to Work Better with Mac OS X - SambaWiki
December 1, 2025 - [Global] vfs objects = fruit streams_xattr fruit:metadata = stream fruit:model = MacSamba fruit:veto_appledouble = no fruit:nfs_aces = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes fruit:posix_rename = yes [TimeMachineBackup] fruit:time machine = yes # fruit:time machine max size = SIZE
🌐
Univention Help
help.univention.com › ucs - univention corporate server
Recommended Samba configuration for Mac - UCS - Univention Corporate Server - Univention Help
October 14, 2022 - Hi@all, The Samba wiki recommends the following settings for MACOS: [Global] vfs objects = fruit streams_xattr fruit:metadata = stream fruit:model = MacSamba fruit:posix_rename = yes fruit:veto_appledouble = no fruit:nfs_aces = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delet...
🌐
Home Assistant
community.home-assistant.io › feature requests
Add support for user-configurable fruit:model in the samba addon - Feature Requests - Home Assistant Community
May 8, 2025 - I think it would be fun if home-assistant would be displayed as an actual homepod in macOS network view, so I propose having users be able to set their own fruit:model in the config file.
🌐
TheDigitalPictureFrame
thedigitalpictureframe.com › home › samba file sharing › the ultimate guide on using samba filesharing on the raspberry pi with special tuning for macs
The ultimate guide on using Samba filesharing on the Raspberry Pi with special tuning for Macs - TheDigitalPictureFrame.com
December 26, 2023 - So, if you have a Mac, it can be quite useful to add this section to the Samba config file in global: ... vfs objects = catia fruit streams_xattr fruit:aapl = yes fruit:metadata = stream fruit:model = RackMac fruit:posix_rename = yes fruit:veto_appledouble = no fruit:wipe_intentionally_lef...
🌐
TrueNAS Community
truenas.com › forums › archives › freenas (legacy software releases) › freenas help & support › storage
SMB shares: what determines macOS Finder icon? | TrueNAS Community
March 21, 2019 - I realise this thread is a little old but I've been trying to find a solution to this problem myself and discovered this thread while searching. I think I've found the answer, just followed the Samba wiki instructions posted here but used Xserve instead of MacSamba for the model string and now my Samba server comes up as the server icon in Finder. fruit:model = Xserve
🌐
GitHub
github.com › haijeploeg › samba-timemachine › blob › master › smb.conf
samba-timemachine/smb.conf at master · haijeploeg/samba-timemachine
fruit:model = MacSamba · kernel oplocks = no · kernel share modes = no · map acl inherit = yes · posix locking = no · smb2 leases = yes · vfs objects = catia fruit streams_xattr ·
Author   haijeploeg
🌐
GitHub
github.com › LibreELEC › LibreELEC.tv › pull › 3416
samba: set fruit:model = Xserve for macOS finder by chewitt · Pull Request #3416 · LibreELEC/LibreELEC.tv
April 11, 2019 - Samba broadcasts model = MacSamba via bonjour but at some point the macOS Finder stopped showing a generic monitor icon (see the msad device) and instead displays a question mark (see the N2 device). This PR sets model = Xserve (see the X96 device) which is the least-worst of the Finder icons available that work.
Author   LibreELEC
🌐
Spinics.net
spinics.net › lists › samba › msg162073.html
fruit:model - SAMBA - spinics.net
January 31, 2020 - To: Samba List <samba@xxxxxxxxxxxxxxx> Subject: fruit:model= From: torch via samba <samba@xxxxxxxxxxxxxxx> Date: Fri, 31 Jan 2020 19:12:39 -0700 · Reply-to: torch <casatech19@xxxxxxxxx> vfs_fruit provides this parameter with default “MacSamba”. What icon should be displayed in Finder with the default and where it is found in a Mac?