smb ubuntu code example
Example: install smb ubuntu
#Installing Samba
sudo apt update
sudo apt install samba
#Setting up Samba
mkdir /home/<username>/sambashare/
sudo nano /etc/samba/smb.conf
[sambashare]
comment = Samba on Ubuntu
path = /home/username/sambashare
read only = no
browsable = yes
sudo service smbd restart
sudo ufw allow samba
#Setting up User Accounts and Connecting to Share
sudo smbpasswd -a username
#on Ubuntu
#Open up the default file manager and click Connect to Server then write
smb://ip-address/sambashare