configure samba server in centos 8
How to Install and Configure Samba Server In CentOS/Linux 8

configure samba server in centos 8

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 .

check samba packages install or not

Install Samba and Necessary packages :

Install samba and necessary  package

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.

Create Directory,Assign Permission and ownership in centos 8

samba configuration :

first open the vim /etc/samba/smb.conf and then change some settings as bellow.

samba server configuration file

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

check samba server configuration file

Start enable and check Samba Services:

[root@simi ~]# systemctl start smb [root@simi ~]# systemctl enable –now smb

Start,enable and check samba services in Centos 8

If the firewall service is on then allow samba through firewall.

[root@simi ~]# firewall-cmd –add-service=samba –permanent [root@simi ~ ]# firewall-cmd –reload

Allow Firewall Service to Samba server

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

Access samba share Directories from windows computer by IP
Access samba share Directories from windows computer by name
Access share data which was share by 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:

Install samba  RPM Package in CentOS 8

configure samba

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

 add Group ,change permission,ownership and add user for samba server
samba configuration:
configuration file to share secure data in samba server

save exit, restart and check samba service

start and check status 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

Access samba share directory through IP

Click On OK

Access samba share directory through Hotname

Enter the username and password that was created for the samba server

Enter username and password that was created for the samba  server
Access samba share directory
Access share data which was share by samba server

Conclusion

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