Table of Contents
What you will read?
Samba allows Linux systems to share files and printers with Windows and other devices on a network. On CentOS 8, Samba can be installed quickly using the DNF package manager.
Step 1: Update your system
Make sure your system is up to date:
sudo dnf update -y
Step 2: Install Samba
Install Samba server and client packages:
sudo dnf install samba samba-client samba-common -y
Step 3: Verify installation
Check the Samba version to confirm the installation:
smbd --version
Step 4: Enable and start Samba services
Ensure Samba services start on boot and are currently running:
sudo systemctl enable smb
sudo systemctl enable nmb
sudo systemctl start smb
sudo systemctl start nmb
sudo systemctl status smb
Samba is now installed on CentOS 8 and ready for configuration of shared directories and user access.
Follow DropVPS on Google
Add DropVPS as a preferred source to see our latest VPS guides and tutorials surfaced first in Google Search and AI Overviews.
Need a Windows Server?
DropVPS Windows VPS gives you full Admin RDP access, instant setup, and dedicated resources — run any Windows workload without limits.
- Full Admin Access
- RDP Ready Instantly
- Dedicated Resources
- 24/7 Support
No commitment · Cancel anytime
