smb.conf example

image_print

A working example of an existing file server with Samba.

vi /etc/samba/smb.conf
[global]
unicode=yes
unix charset = UTF8
workgroup = WORKGROUP
server string = samba
log file = /var/log/samba/%m.log
max log size = 50
load printers = No
dns proxy = No
ldap ssl = no
valid users = ras bombo klat
hosts allow = 127.0.0.1 192.168.0. 10.11.12.
hide dot files = Yes
follow symlinks = No
create mask = 0664
directory mask = 0775
wide links = No
encrypt passwords = true
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
veto files = .*/Mount/Arbeitsfläche/Vorlagen/
browseable = Yes
disable netbios = yes [Samba] path = /Daten/Samba read only = no valid users = bombo
service smbd restart