Install Samba And Share Folders Ubuntu 10.10 “Maverick Meerkat”

Here is a guide to install samba and share folders on Ubuntu 10.10 “Maverick Meerkat”. In this guide i will show you how to install Samba and how to make a shared folder. This folder will be accessable from a computer running on windows or Ubuntu.

First you need to install Samba, to do this open a Terminal window (Applications -> Accessories -> Terminal) and copy+paste the following line:

sudo apt-get install samba samba-common

Press y followed by Enter to install

Now install the Samba server configuration tool, copy+paste the following line:

sudo apt-get install system-config-samba

Press y followed by Enter to install, when finished installing you can close your Terminal window.

Now go to your Home Folder (Places-> Home Folder)

Click with your right mouse button and select Create Folder, name your folder (Shared-10.10) and press enter

When done close your Home folder.

Now start the Samba Server Configuration (System -> Administration -> Samba)

Fill in your password and click on the OK button

Click on the + button to add a shared folder

Click on the Browse button

Select the folder you want to share and click on the OK button

Enter a description for your shared folder. Mark the check boxes if you want the folder to be writable or visible

Click on the Acces tab and change the acces setting to your likings, i want mine to be visible and accesable for everyone. But you can also allow acces to specific users. when finished click on the OK button

Now the shared folder is added to you Samba Server Configuration

Now go to your Shared folder (Places -> Home Folder -> Shared-10.10)

select the folder and click on it with your right mouse button and select Sharing Options

Add a comment and change the permissions for others to create and delete files and for the guest acces rules. When done click on the Create Share button

Click on Add the permissions automatically

After this step you are finished and your Shared-10.10 folder will be visible and accessable from another computer in your network (windows and Ubuntu). To acces the folder when using Ubuntu follow the next steps

Go to Places and select Network

Now the select the computer where the shared folder is located on (TINUZ-DESKTOP in my case)

Click on the shared folder (Shared-10.10)

Welcome to your shared folder πŸ™‚

To acces the shared folder on a computer running on windows (Win7 and Vista) follow the next step:

Click on Start and type: \\YOURCOMPUTERNAME (in my case TINUZ-DESKTOP)

make sure that when typing your computer name you have CapsLock on because the name has to be written with capitols. If you don’t know your computer name go to System -> Administration -> System Monitor and select the System tab.

Note: if you have problems with opening the files you placed in your shared folder from another location… here’s how you fix it!

Open a Terminal window and copy+paste the following line:

sudo chmod o+w YOURSHAREDFOLDER/filename

replace YOURSHAREDFOLDER for the location of our shared folder and replace filename for the file you need to take the permissions from

Another way to fix this is to replace some lines in your smb.conf.

Open a Terminal window and copy+paste the following line:

sudo gedit /etc/samba/smb.conf

Now your Samba config file is opened, scroll down to the part that begins with: [yoursharedfolder] (in my case [Shared-10.10])

Now copy the text below (change the [YourShared-FolderName], comment, path, user and group name to the ones you use) and replace it for the text in your smb.conf file

[YourShared-FolderName]
comment = your comment here
path = your/shared/folder
force user = yourusername
force group = yourgroupname
writeable = yes
browseable = yes
guest ok = yes

In the screenshot below you see how my smb.conf file looks after the changes

Now save and close the smb.conf file. Now all the files will have the right permissions/ownership to be opened or changed.

20 Responses to Install Samba And Share Folders Ubuntu 10.10 “Maverick Meerkat”

  • Ugh says:

    This is completely insane. Why would anyone want to run Linux when it’s so difficult to do anything in it?

    • tinuz says:

      All the things you do for the first time look more difficult then it really is πŸ™‚ and you are not going to tell me that windows is better or more user friendly… because it isn’t

    • Tawnja says:

      Eh, this is just to make linux play nicely with WINDOWS. Two linux computers will network with each other without a hitch straight out of the box. Can you say the same about Winblows?

  • I am experimenting with a machine and these instructions were right on the money. I did a few modifications but other than that this is some awesome stuff.

  • oatkinson says:

    It seems like we did the same thing twice. Specifying a share in the system-config-samba tool and then again in nautilus. Is this because the nautilus sharing in only with respect to this computer, and must match what is in the samba config?

  • Nyx says:

    This doesn’t seem to be working for sharing external storage devices. I’m running Ubuntu 10.10 on two laptops, and Vista on a desktop PC. I have a USB external hard drive (NTFS) connected to one of the Ubuntu boxes, and tried sharing it using this method, but when I try to access it from any computer on the network (including the one it’s connected to), I get “Failed to mount windows share” errors. Anything shared from my internal hard drive works fine with this method, but not external devices. Any suggestions?

    • nightfly says:

      You need to force samba to access the share under the same username it was mounted with.
      You also might need to place some extra configuration to avoid the Wide Links and Unix Extensions conflict.

      in the /etc/samba/smb.conf, under the [global] directive add :

      force user = your_n00b_name

      wide links = yes

      unix extensions = no

      hope this solves your problem

  • psymole says:

    Hey, your tutorial worked great, I was stuck in the whole having to share the folder twice.

    A question, is there a way to share folder outside of the home directory. I’m trying to share a folder on another partition but so far no luck.

  • Marcos says:

    Great tutorial. Thanks so much, help me full.
    That’s a realy step-by-step. You area a big teacher.

  • cirovladimir says:

    Awesome!
    I had no problems sharing folders through “Sharing Options” in Nautilus on my laptop. It all went smooth, asked me to install samba, logout, change folder permissions automatically and worked like a charm.
    But a completely different story with my desktop. I was having a really big upset until I found your post. The “force user” and “force group” options saved my life. Thank you very much!

  • lewis delarosa says:

    Good post but I was wanting to know if you could write a litte more on
    this topic? I’d be very thankful if you could elaborate a little bit further. Many thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

16 − thirteen =

Who's Online
0 visitors online now
0 guests, 0 members