(01)Install Samba
Linux
1sudo apt-get install -y samba2sudo systemctl enable smbdWindows-compatible file sharing on Linux
What is this?
Samba shares Linux folders so Windows and Mac computers can access them like network drives.
Where to create or edit the main configuration — paths below match the setup steps.
/etc/samba/smb.confLocation: Samba server
Shares, users, and workgroup
Step 01
1sudo apt-get install -y samba2sudo systemctl enable smbdStep 02
1sudo nano /etc/samba/smb.conf2# Add [share] section3sudo smbpasswd -a username4sudo systemctl restart smbdStep 03
1testparm -s2smbclient -L localhost -U%