pavement

Smb.conf

From FreeBSDwiki
Revision as of 00:27, 20 January 2006 by Jimbo (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a fairly simple example of an smb.conf file for a workgroup-model fileserver. Note the veto oplocks line - that's to keep opportunistic file locking from interfering with multi-user functionality on Access databases. It's best to keep oplocks on, but just veto them for files that end in extensions they're likely to cause problems with.

[global]
netbios name = fileserver
workgroup = myworkgroup
oplocks = yes
veto oplock files = /*.mdb/*.MDB/*.mde/*.MDE/
security = user
encrypt passwords = yes
directory mask = 777
create mask = 777
log level = 2
log file = /var/log/samba.log
max log size = 20480

[programs]
path = /data/smbshare/programs
read only = no
writeable = yes  

[data]
path = /data/smbshare/data
read only = no
writeable = yes

[public]
path = /data/smbshare/public
read only = no
writeable = yes

[homedirs]
path = /home
read only = no
writeable = yes

By default, smb.conf can be found at /usr/local/etc/smb.conf on FreeBSD machines.

see also Samba.

Personal tools