Samba For Ubuntu

Install Samba

1
sudo apt install samba

Create Shared Directory

1
2
3
mkdir /path/to/directory

sudo chmod 777 /path/to/directory

Edit Samba Config

1
2
3
4
5
6
sudo vim /etc/samba/smb.conf

[share]
path = /path/to/directory
valid users = username
writable = yes

Create Samba User

1
2
3
sudo useradd username

sudo smbpasswd -a username

Restart Samba Service

1
sudo service smbd restart

Finish

Enjoy!