Tutorials we will learn configure samba server in centos 8 and sharing Directories between CentOS and Windows 10.
Samba share Directory between same and Different Operating System. it is is a free and open-source protocol that allows files to be shared across networks.
You check the smb package in your system, the package is installed or Not, if the package is not installed then install it.
Check samba package or not .
Install Samba and Necessary packages :
After installing the samba package, it’s time to make some configurations, First we will create a Directory and give it a Necessary Permission And Ownership as follow.
samba configuration :
first open the vim /etc/samba/smb.conf and then change some settings as bellow.
Save and close the configuration file and test the configuration file is correct or not, To check the configuration file run Bellow Command.
[root@simi ~ ] # testparm
Start enable and check Samba Services:
[root@simi ~]# systemctl start smb [root@simi ~]# systemctl enable –now smb
If the firewall service is on then allow samba through firewall.
[root@simi ~]# firewall-cmd –add-service=samba –permanent [root@simi ~ ]# firewall-cmd –reload
Access samba share directories from windows computer :
After logging into the Windows computer, go running ( press windows key + R) then type.
\\ hostname of samba server \\IP ADDRESS OF SAMBA SERVER
SAMBA SHARE SECURE DIRECTORY :
Like we have just learned, simple created and shared the directories and access everyone, delete it, modify it. If we want to shared a very important document and access only particular user That has been granted access permission.
Install Samba Necessary packages:
After installing the package, create a group, Create directory and assign the necessary permissions and file ownership , add a new user to the newly created group,Set password to samba user that will be used when accessing the secured directory share
save exit, restart and check samba service
again login into the Windows computer, go to run ( press windows key + R) then type.
\\hostname of samba server OR \\IP ADDRESS OF SAMBA SERVER
Click On OK
Enter the username and password that was created for the samba server
This Tutorials We learned about configure samba server in centos 8 Step By steps hope that now you are comfortable with Samba Server. If your problem is still not solved share your Problem via comments