Samba Service Guide
9/1/26Less than 1 minute
Samba Service Guide
Samba implements the SMB/CIFS protocol, enabling file and printer sharing between Linux and Windows systems.
Installing Samba
On Debian/Ubuntu
sudo apt update
sudo apt install sambaOn CentOS/RHEL
sudo yum install sambaConfiguring Samba
Edit the configuration file:
sudo nano /etc/samba/smb.confAdd a shared directory:
[share]
comment = Shared Directory
path = /srv/share
browseable = yes
read only = no
valid users = user1Set the Samba password for the user:
sudo smbpasswd -a user1Starting and Managing Samba
sudo systemctl start smbd
sudo systemctl enable smbd
sudo systemctl status smbdAccessing from Windows
Open the file explorer and visit \\<server-ip>\share, then log in with the Samba username and password.
