Intro
Samba is a costless technology that allows data exchange without requiring additional software.
In this section, we look on configuration process in CentOS.
For supporting it, deploy additional components.
Initial, deploy programs by inserting:
sudo yum install samba samba-client samba-common
Configuration
Afterward, it is necessary to modify config file /etc/samba/smb.conf.
Perfom:
sudo nano /etc/samba/smb.conf
That file contains many lines of code.
For application to start correctly, let s edit some of them.
Making shared catalogs
Making catalogs for file sharing is the next process.
Do it:
sudo mkdir /home/username/share1
Operating system support creation multiple directories for different users or groups.
The following is helped us to create a directory:
sudo mkdir /home/username/share1
Access settings
Access settings must be configured by adding the lines:
[share1]
path = /home/username/share1
valid users = username
read only = no
Creating Users
To create Samba users, we use perform:
sudo smbpasswd -a username
Restart Samba
Finally, we restart the Samba service to apply the settings by typing:
sudo systemctl restart smb
You can now try to connect to shared folders from another computer on the network using the username and password you created earlier.
Conclusion
Samba is an excellent tool for sharing files and printers between computers on a local network. This article provides a comprehensive guide for setting up a Samba server on CentOS.