Install the software
First, install the software itself:
yum install samba samba-client samba-common
Create OS user
Second, you might want to create a separate OS user to work with Samba. Let's name it
sam. If you don't know how to do that then read how to create a new Linux user.
Set Samba user password
Next, you need to set your Samba user's password. You will use this password to mount your server as a network drive.
smbpasswd -a sam
Update the firewalld
If you use
firewalld then you also might need to allow access to Samba ports from the Internet:
firewall-cmd --permanent --zone=public --add-service=samba firewall-cmd --reload
Run the service
service smb start