Skip to main content

File Sharing

We will be installing Samba, a protocol that allows us to share your files over the local network.  This is open-source implementation of Microsoft's SMB protocol.

We can install it by entering the following command: 

sudo apt-get install -y samba samba-common-bin

Now that Samba is installed, we can ensure it's running by using the following command:

sudo systemctl status xrdp

Now that we know it's installed and running, we can set up our storage drives for sharing.

 

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup

 

sudo nano /etc/samba/smb.conf

[SharedDocs]
   path = /srv/samba/sharedocs
   writable = yes
   guest ok = no
   valid users = @sambashare

 

sudo adduser your_username sambashare
sudo smbpasswd -a your_username

 

sudo systemctl restart smbd

 

smbclient -L localhost -U %