-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux Samba Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to Samba on Linux, covering Arch Linux, CachyOS, and other distributions including installation, file sharing, and Windows compatibility.
Arch/CachyOS:
# Install Samba
sudo pacman -S samba
# Enable service
sudo systemctl enable --now smb nmbDebian/Ubuntu:
sudo apt install samba
sudo systemctl enable smbd nmbdFedora:
sudo dnf install samba
sudo systemctl enable smb nmbCheck Samba:
# Check service
systemctl status smb
# Check version
smbclient --versionConfigure Samba:
# Edit config
sudo vim /etc/samba/smb.confCommon settings:
[global]
workgroup = WORKGROUP
server string = Samba Server
security = user
[share]
path = /srv/samba/share
browsable = yes
writable = yes
valid users = username
Add share:
# Edit smb.conf
sudo vim /etc/samba/smb.confAdd:
[myshare]
path = /home/user/share
browsable = yes
writable = yes
valid users = user
Configure permissions:
# Set directory permissions
chmod 755 /home/user/share
# Set ownership
chown user:user /home/user/shareAdd user:
# Create Samba user
sudo smbpasswd -a username
# Enable user
sudo smbpasswd -e usernameWindows access:
- Open File Explorer
-
Address bar:
\\server-ip\share - Enter username/password
- Access files
Check service:
# Check status
systemctl status smb
# Check logs
journalctl -u smb
# Test config
testparmFix permissions:
# Check directory permissions
ls -la /path/to/share
# Set correct permissions
chmod 755 /path/to/share
chown user:user /path/to/shareThis guide covered Samba installation, configuration, and file sharing for Arch Linux, CachyOS, and other distributions.
- File Sharing - File sharing setup
- Networking - Network setup
- Samba: https://www.samba.org/
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.