Create a samba server in Ubuntu and access it in mac

1. Installation and configuration

//install samba
sudo apt-get install samba samba-common
//create shared directory
sudo mkdir /home/share
sudo chmod 777 /home/share
//Modify samba configuration
sudo gedit /etc/samba/smb.conf

 2. Modify the samba configuration content and add it at the end of the file

[myshare]
    comment = my shares
    path = /home/share
    browseable = yes
    writable = yes
    guest ok = yes

 3. Restart samba

sudo service smbd restart

 4. After opening Finder in mac, command+K to access smb://ip and log in as guest

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327057821&siteId=291194637