smb.conf piemērs

Ja Samba serveris nav kompilēts ar citādiem uzstādījumiem, tad šis fails atrodas /etc/smb.conf. Turpat daži distributīvi ievieto smb.conf.simple, kurš satur ļoti daudz komentāru un nav īpaši pārskatāms. Ieteicams šo failu nokopēt un tad izdzēst visu, kas nav nepieciešams vai der noklusētās vērtības.
Tālāk seko šī faila piemērs:

[global]
client code page = 775
workgroup = DZOKA
security = user
server string = Samba server %v
encrypt passwords = Yes
create mask = 0775
directory mask = 0775
interfaces = eth0
bind interfaces only = Yes
hosts allow = 192.168.100.
dos filetimes = Yes
[homes]
comment = Privati dati
read only = No
browseable = No
[public]
comment = Kopejie dati
path = /home/samba/public
read only = No
[backup]
comment = Rezerves kopijas
path = /home/samba/backup
valid users = @backup
write list = @backup
[archieves]
comment = Datu arhīvi
path = /home/samba/archieves
valid users = @backup
write list = @backup
[slack80]
comment = Slackware 8.0 CD-ROM
path = /home/samba/images/slack80
read only = Yes