Menu Close

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.

90 total views, 2 views today

20
Leave a Reply

avatar
12 Comment threads
8 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
15 Comment authors
lewis delarosadavid jonesPhilcirovladimirMarcos Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
Ugh
Guest
Ugh

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

Tawnja
Guest
Tawnja

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?

Phil
Guest
Phil

Yes actually I can.

Linuxsapien
Editor

LAWL, like find users with an open mind who want to experiment and try new stuff instead of media telling them what to do?…

FLX
Guest

Thank you for the info, y tried to find again the correct package.

Thutmose Dodd
Guest

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
Guest
oatkinson

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
Guest
Nyx

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
Admin

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
Guest
psymole

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
Guest
Marcos

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

cirovladimir
Guest

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!

cirovladimir
Guest

BTW, where can I get a cool ubuntu countdown like yours?

david jones
Guest
david jones

gud

lewis delarosa
Guest
lewis delarosa

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!