Following is a basic setting up Samba file sharing on CentOS. This is meant to be a simple introduction and…