How to set up Samba in Ubuntu and access it in MacOS/Windows Samba is a way to share files across the different…