ubuntu smb share code example
Example: Create A Shared Folder On Linux With Samba
sudo apt install samba #Installing Samba
sudo service smbd status #Check Samba Service
mkdir /home/<username>/mysambafolder #create your shared folder
sudo nano /etc/samba/smb.conf #edit this file with nano
#add this to the end of the smb.conf file
[mysambafolder]
comment = My Samba Folder
path = /home/<username>/mysambafolder
readonly = no
writeable = yes
browsable = yes