# Configure Samba to Work Better with macOS ## Samba Server (Ubuntu 20.04.3) ### Insatll Samba - `sudo apt update` - `sudo apt install samba` - `sudo smbpasswd -a $USER` ### Setting up Samba - `sudo vim /etc/samba/smb.conf` ``` [Global] ## Enhanced OS X and Netatalk interoperability min protocol = SMB2 ea support = yes vfs objects = fruit streams_xattr fruit:metadata = stream fruit:model = MacSamba fruit:veto_appledouble = no fruit:posix_rename = yes fruit:zero_file_id = yes fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes [homes] comment = Home Directories path = /home/%S valid users = %S writable = yes browseable = yes create mask = 0644 directory mask = 0755 ``` - `testparm` ``` Load smb config files from /etc/samba/smb.conf Loaded services file OK. Weak crypto is allowed WARNING: The 'netbios name' is too long (max. 15 chars). Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions # Global parameters [global] log file = /var/log/samba/log.%m logging = file map to guest = Bad User max log size = 1000 obey pam restrictions = Yes pam password change = Yes panic action = /usr/share/samba/panic-action %d passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . passwd program = /usr/bin/passwd %u server min protocol = SMB2 server role = standalone server server string = %h server (Samba, Ubuntu) unix password sync = Yes usershare allow guests = Yes fruit:delete_empty_adfiles = yes fruit:wipe_intentionally_left_blank_rfork = yes fruit:zero_file_id = yes fruit:posix_rename = yes fruit:veto_appledouble = no fruit:model = MacSamba fruit:metadata = stream idmap config * : backend = tdb vfs objects = fruit streams_xattr [homes] comment = Home Directories create mask = 0644 path = /home/%S read only = No valid users = %S ``` ### Samba Client (macOS 12.2.1) - None ## Reference - [Configure Samba to Work Better with Mac OS X](https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X) - [[Samba] OS X client symlinks](https://lists.samba.org/archive/samba/2019-April/222514.html) - [vfs_fruit](https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html) — Enhanced OS X and Netatalk interoperability
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.