Sunday, February 16, 2014

Sharing files between Ubuntu or Linux Mint and Mac OSX (Samba)


Connecting to Ubuntu with a Mac is relatively easy. The following uses SMB (Windows File Sharing) to share files between Linux Mint/Ubuntu and OSX. This is the easiest way I have found to share files and create a permanent share.

First, create the share on Ubuntu

cd ~
mkdir Shared
sudo chown nobody.nogroup ./Shared
sudo chmod 777 ./Shared

Then, install smb. sudo apt-get install smb

Configure smb.

1. vim /etc/samba/smb.conf
2. Modify the following:
   workgroup = EXAMPLE
   security = user
workgroup = EXAMPLE is located in the [global] section. Further down in the [global] section is the security. You can name the workgroup whatever you wish.
Create the share at the bottom of the file.
    comment = Ubuntu File Server Share
    path = /path/to/Shared/folder
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755
Replace /path/to/Shared/folder with the full path to the Shared folder you created at the beginning.

You can name [share] whatever you want, like [sharedfolder].

Add your user.

sudo smbpasswd -a username Where username is your Linux Mint login name. It will prompt you to enter a share password. Use a different password than your Linux Mint password.

Restart smb.

sudo restart smbd
sudo restart nmbd

Access from OSX

Open Finder then type in Cmd-K.
Type in smb://x.x.x.x where x.x.x.x is the IP of your Ubuntu machine (use ifconfig on Ubuntu to find this).
Use your Linux Mint username and the password set above with smbpasswd (not your login password) to connect.
The folder should appear on the left on finder.

Now you can share files between your Mac Mini OSX and Linux Mint machines. Happy coding.


  1. Hey, i'm trying this on from os x lion to acces my linux mint external HD but i don{t get the part of "Cmd-K" where on finder do I have to type this, on the search bar doesn't show anything...
    thanks for the instructions, cleared many things.

    1. Been a year since I used it, but I think it's the ctrl/alt/windows key (probably Windows)
      Good luck

  2. I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates. Folderlock With regard to PC Download - Avoid Spend Time Browsing, Go through Exactly About PC Personal computers Right here how to encrypt files in folder lock

  3. I'm amazed, I must say. Seldom do I encounter a blog that's both equally educative and engaging, and without a doubt, you have hit the nail on the head. The problem is something which not enough folks are speaking intelligently about. Now I'm very happy that I found this in my search for something concerning this. Navigate to this website: Top Choices Of Encryption Software & How To Learn To How To Encrypt A Password For Free In 1 Hour