Setting up Samba as a Standalone Server — by SambaWiki
SambaWiki guide to running Samba on a Linux box that is not in a domain, with one guest share and one password-protected share. It covers creating smb.conf, Samba users, groups, share permissions with setgid, validating with testparm and testing with smbclient. Guest shares are flagged as a security risk, and recent Windows clients may refuse guest access over SMB2/3.
Quick steps
- Write smb.conf with server role = standalone server
- Create the local user and add it with smbpasswd -a
- Create the share directories and set group ownership and chmod 2770
- Check the file with testparm -s, start smbd, then test with smbclient
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: Setting up Samba as a Standalone Server by SambaWiki. Licence: Link only (©).
- Source reviewed
- 2026-11-02
- Link checked
- Not yet
- Tested hands-on
- Not by Oddbyte.Me