Search This Site

Prefer A Different Language? No problem!

Wednesday, August 2, 2017

How To Share Folders In Ubuntu

How To Share Folders In Ubuntu:

Video Instructions:
with voice-overs:  https://youtu.be/1jLHMIh293g
with background music: https://youtu.be/vM0MENDnesY

Install Samba:
sudo apt install samba

Modify config file:
sudo gedit /etc/samba/smb.conf (gedit or any text editor)

add config for each folder at the bottom (shown in video)
[shareme] (name of folder)
        comment = shareme (name of folder)
        path = /home/administrator/Desktop/shareme (path to folder)
        read only = no (can be yes also)
        guest ok = no (can be yes also)
        #read list = administrator (user account name)
        #write list = administrator (user account name)

set share password (can be the same as your login password)
sudo smbpasswd -a USERNAME

set permissions:
sudo chmod -R 777 sharedfolder (path to file - as seen in video)

restart Samba:
sudo service smbd restart

add to startup applications (as far as I know only needed for ubuntu 16.04 as it tends to disconnect otherwise after a few hours)
#!/bin/bash
while true
do
ls /run/user/`id -u`/gvfs/­smb-share:* &> /dev/null
sleep 600
done

No comments:

Post a Comment