Following is a basic setting up Samba file sharing on CentOS. This is meant to be a simple introduction and does not include options for integrating Samba authentication with LDAP or Active Directory.
Check and see if samba is installed or not:
# rpm -qa samba
If it is not installed, then install using:
# yum install samba
# yum install samba-common
# yum install samba-client
# yum install system-config-samba
Samba configuration file is /etc/samba/smb.conf.