0

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!

2 Answers 2

1

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
[homes]
   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.

5
  • 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. Nov 21, 2012 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. Nov 21, 2012 at 22:14
  • I need to be able to share both ways. Nov 21, 2012 at 23:28
  • Then you should use ssh or vsftp instead of samba. Nov 22, 2012 at 0:02
  • I have tried ssh, but I keep getting "permission denied" How do I fix that? Nov 22, 2012 at 0:04
1

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: 192.168.1.103

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

ssh [email protected]

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .