Skip to content

Instantly share code, notes, and snippets.

@50n1cd347h9
Last active September 27, 2024 19:44
Show Gist options
  • Save 50n1cd347h9/371a9abd2cd1650af7a604de70efa821 to your computer and use it in GitHub Desktop.
Save 50n1cd347h9/371a9abd2cd1650af7a604de70efa821 to your computer and use it in GitHub Desktop.

make directory to share

sudo mkdir /home/share
sudo chmod 777 /home/share
sudo chown <user_name>:<user_name> -R /home/share
sudo smbpasswd -a <user_name>

add following lines

[global]
   mangled names = no
   dos charset = cp866
   unix charset = UTF8
   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:delete_empty_adfiles = yes
   server min protocol = SMB2
   client min protocol = SMB3
[Share]
   path = /home/share
   browsable = yes
   writable = yes
   guest ok = no
   create mode = 0777
   directory mode = 0777
sudo systemctl restart smbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment