samba
Installation
SKILL.md
Identity
- Daemons:
smbd.service(file/print sharing),nmbd.service(NetBIOS name service),winbindd.service(AD/domain integration) - Config:
/etc/samba/smb.conf - Samba password DB:
/var/lib/samba/private/passdb.tdb - Logs:
journalctl -u smbd,/var/log/samba/log.smbd,/var/log/samba/log.nmbd - Distro install:
apt install samba/dnf install samba
Key Operations
| Task | Command |
|---|---|
| Status: smbd | systemctl status smbd |
| Status: nmbd | systemctl status nmbd |
| Test config syntax | testparm |
| Test config (quiet, show effective values) | testparm -s |
| List shares on local server | smbclient -L localhost -U% |
| List shares on remote server | smbclient -L //server -U username |
| Add Samba user (must be an existing Linux user) | sudo smbpasswd -a username |
| Change Samba password for user | sudo smbpasswd username |
Related skills