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

This question already has an answer here:

I have two laptops running Ubuntu 12.04. Both connect to the same WIFI network to access internet.

How do I connect them to each other so that I can access files on one from another and vice versa?

Also, how do I manage the user permissions, etc. on them?

share|improve this question

marked as duplicate by Mitch Jun 24 '15 at 10:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Not to change the subject but sometimes it is easier to just ssh between machines to share files. – N.N. Feb 2 '12 at 14:42… – One Zero Jun 26 '12 at 12:26
up vote 14 down vote accepted

                           Share files between 2 ubuntu computers

if you have two computers running Ubuntu on the same network, it could be an good idea to use openssh to share files between them.

sudo apt-get install openssh-server openssh-client

Then you need to figure out the ip of each the computer you want to connect to. Most of the time it’s something like or something in that line.

On the computer you want to access the files from, go to “File -> Connect to Server”.

enter image description here

enter image description here

enter image description here

Service type should be “SSH”"

Server should be the “ip” adress of the pc where the info is on.

Port, enter “22″

Pick the folder you wish to share (could take some time to connect depending on the size of the folder).

The user name of the pc you are connected to

The bookmark will be the name of the folder in nautilus

After that you’ll get a windows where you have to enter a password. That would be the password of the pc you are trying to connect to.

You should have read/write permissions.

enter image description here

share|improve this answer

If you do not require encryption you can use python. If you have installed python you can try SimpleHTTPServer. For this

cd /folder/to/share

And then,

python -m SimpleHTTPServer

This will allow sharing through port 8000. The other machine can access the files using http://yourlocalIP:8000

share|improve this answer

It seems like every installation of samba is a bit different. You'll want to tweak around with the settings until you get something that works.

Perhaps this will help though. This is my mount of an ntfs drive:

    path = /media/alpha/
    browseable = yes 
    readonly = no
    guest ok = yes 
    create mask = 0644
    directory mask = 0755
    force user = default
    force group = default

Then I made sure that /media/alpha was mounted with 777 permissions.

Using Samba does this to you... sshfs is better.

Edit: I've recently updated the permissions on my External Drive, and having it mounted as 777 isn't required. Limiting permissions on an ntfs drive is probably another topic.

share|improve this answer

               A Quick Way to Share Folders in Ubuntu


Share a folder between 2 Ubuntu using samba PC's

enter image description here

enter image description here

enter image description here

enter image description here

sudo smbpasswd -a USERNAME
share|improve this answer

go to /etc/samba directory and type:

   sudo gedit smb.conf

Then just add this line after workgroup name:

   usershare owner only = false

and exit with saving.

Now restart the services:

   sudo service smbd restart

   sudo service nmbd restart

Now create a samba user:

   sudo smbpasswd -a RAIHAN

and provide password for that user.

That's it!!!

share|improve this answer

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