The key to configuring Samba is its lone configuration file: smb.conf. A basic samba configuration for the smb.conf file is given below.

[global]
workgroup = SIMPLE
[SHARE]
comment = Common Share
path = /SHARE
read only = no
guest ok = yes

Prior to adding the confifuration to the smb.conf file, take a backup of the current smb.conf file.

and then add the directory to be shared.

******Keeping a local backup of smb.conf file***********

#cp /etc/samba/smb.conf /etc/samba/smb.conf.backup

******Create a share folder******

#mkdir /SHARE
******Give necessary permission********

#chmod 777 /SHARE

*******Add user for Share access*******

#smbpasswd -a root

give password, restart smb service enjoy sharing. 🙂