📖Create Local Network

Share files within your home network

If you have two or more computers at home or in the office, you may want to combine them into the shared local network to directly share files via the file manager.

One of the methods to do that is to install and configure Samba—a server app—on all computers you want to enable in the network. A (Wi-Fi) router is also required, and it doesn't matter if computers are connected to the router via Ethernet port or Wi-Fi.

The following manual assumes all your computers have elementary OS installed. Almost all work is done via Terminal.

The guides below need to be tested and confirmed.

Share a Computer in the Local Network

  1. Install Samba on a shared computer by running:

sudo apt install samba
  1. Open /etc/samba/smb.conf as admin.

  2. Uncomment (delete semicolon at the beginning of the lines) the following section to share the entire /home directory with a certain user.

[homes]
    comment = Home Directories
    browseable = yes
    read only = no
    create mask = 0700
    directory mask = 0700
    valid users = <allowed-user-name>
  1. If you want to only share a specified directory, add the path to this section. For example:

[homes]
    comment = Home Directories
    browseable = yes
    read only = no
    create mask = 0700
    directory mask = 0700
    valid users = <allowed-user-name>
    path = /home/<your-name>/<directory-name>
  1. Add the user to Samba (independent of system users):

sudo smbpasswd -a <allowed-user-name>
  1. Create and enter the password you want for the user:

sudo smbpasswd -a home
  1. Confirm the password when asked.

MIND that you will not see any symbols (even asterisks) when typing password!

  1. Restart Samba (the system would start Samba automatically on startup):

sudo service smbd restart

You can share different directories for different users by creating individual sections with individual permissions for each of them.

Enter the Shared Directory from Another Computer

  1. Open Files.

  2. In the left panel, click Entire Network.

  3. Select a network (a shared computer) from the list.

  4. Enter the Username and Password created.

NEED a SCREENSHOT of FILES

Last updated