How To Setup Samba on Ubuntu 20.0.4


Install Samba Server on Ubuntu 20.04

Install the Samba from Ubuntu repository with following commands in your Ubuntu terminal.

sudo apt upgrade
sudo apt install samba

After install, check status and version.

smbd --version
systemctl status smbd
systemctl status nmbd


Edit /etc/samba/smb.conf

Example: Add the following lines

workgroup = WORKGROUP
server string = Samba
netbios name = ubuntu
security = user
map to guest = bad user
dns proxy = no
path = /share
browsable =yes
writable = yes
guest ok = yes
read only = no
create mask = 644

Create the Directory /share

Create the directory “/share" that is configured on the smb.conf file

sudo mkdir /share
sudo chmod 777 /share

Restart Samba Server

sudo systemctl restart smbd