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
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)
Reference