Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to setup a home network that grants full access to and from all machines in my home. All 4 of my machines are running Ubuntu 12.04. I tried setting up filesharing but have 2 problems with this: First, it does not grant me the complete access I desire and I have to share individual directories one by one. Secondly, after following the instructions here for quick file sharing setup: How do I set up file sharing between two Ubuntu laptops on my wireless network? under "browse network" all machines show up, but when I try to to open them, I see this: opening Followed by this a few seconds later: enter image description here

I would appreciate any assistance I can get on his issue! Thanks!

share|improve this question
up vote 1 down vote accepted

Open the smb.conf file for editing (gksu gedit /etc/samba/smb.conf) and look through the Share Definitions section, it seems to have all you need.

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each 
# user's home director as \\server\username
   comment = Home Directories
   browseable = yes

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
   read only = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# The following parameter makes sure that only "username" can connect
# This might need tweaking when using external authentication schemes
;   valid users = %S

Un-commpent means removing the ; from the beginning of a line (don't remove the hash signs). Uncommenting stuff in the first two paragragraphs, and setting the home directory to be writable and browsable, the way I've done above should really be it.

Save and exit when done, then restart samba with sudo service smbd restart.

share|improve this answer
thank you for your answer, but these steps did not solve the problem. I ran them on 2 of my machines but there was no change at all. I still get the exact same results as I described in the original post. – LinuxPCplus Nov 21 '12 at 21:58
The shared home directory might not show in the Network folder, though the previously shared folders should still be there. What do you get if you go to smb://server/username in Nautilus, or \\server\username in Windows? Generally, you would use one machine for sharing the files and all the others for accessing the files. That's the idea of a file server. – mikewhatever Nov 21 '12 at 22:14
I need to be able to share both ways. – LinuxPCplus Nov 21 '12 at 23:28
Then you should use ssh or vsftp instead of samba. – mikewhatever Nov 22 '12 at 0:02
I have tried ssh, but I keep getting "permission denied" How do I fix that? – LinuxPCplus Nov 22 '12 at 0:04

You can share between two ubuntu's computers through ssh.
Let's say you want to share the /home folder of your server.

Install ssh by this command in your server.

sudo apt-get install ssh

run ifconfig command and write down your ip address eg:

test you can loggin in by ssh to the server in the client machine.

ssh user@

In the client machine with Ubuntu Desktop go to file > connect to server

enter image description here

then you can complete all fields with your info

enter image description here

This will be open a nautilus with the folder /home in the server like this. enter image description here

In nautilus under the laber Network you will see the server

enter image description here

You can right click on it and select "Add Bookmark" So you can connect to the ser with one click.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.