1

How to share folders over the network in Xubuntu 18.04?
I work on Xubuntu laptop, others have installed Windows 7 and 10 on their machines.

kujaw
  • 480
  • 5
  • 15

2 Answers2

3

To share a folder in Samba

  • Add User sudo adduser <user-name>
  • create password sudo smbpasswd -a <user-name>
  • Create share:
    sudo -H gedit /etc/samba/smb.conf

Add the following to the end of smb.conf file

[<folder-name]
    path = /path/to/folder
    writeable = yes
    browseable = yes
    guest ok = no

close the file and run:

sudo systemctl restart smbd nmbd

Done.

Vijay
  • 8,556
3

I found a solution here: https://ubuntuforums.org/showthread.php?t=1670223

  1. sudo apt install samba system-config-samba

  2. Run system-config-samba - just type sudo system-config-samba in terminal.

  3. After running sudo system-config-samba I got an error "'SystemError: could not open configuration file /etc/libuser.conf: No such file or directory". Simple solution is sudo touch /etc/libuser.conf found here

  4. Run sudo system-config-samba again.

  5. Create the share (choose File > Add Share, or click the plus icon):

    • Directory = select directory to share
    • Share name = share name
    • Description = description
    • Writable = to allow users to write to directory
    • Visible = to make the share visible while browsing
    • Access tab = select who should have access to the share
  6. In Thunar, access "Network" or "Browse Network" (on the bottom left)

I have to think a moment about my question, if I should edit it to be more precise and concrete.

kujaw
  • 480
  • 5
  • 15