Samba konfiguracja z opcją kosza i antyvira
[global]
socket options = TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384 IPTOS_LOWDELAY
getwd cache = yes
netbios name = samba
max log size = 5000
preserve case = yes
short preserve case = yes
hide dot files = yes
unix charset = ISO8859-2
display charset = UTF8
dos charset = CP852
security = user
guest ok = yes
browsable = yes
create mode = 0700
dos file times = yes
workgroup = firma
max open files = 800
domain master = yes
local master = yes
preferred master = yes
os level = 80
nt pipe support = yes
nt acl support = no
domain logons = no
time server = True
name resolve order = bcast hosts lmhosts
unix password sync = false
update encrypted = no
passwd program = /usr/bin/passwd %u passwd
chat debug =
false passwd chat = *New*password* %nn *Retype*new*password* %nn *updating*done*
encrypt passwords = yes
null passwords = yes
server string = dane firmy
[vol_1]
comment = programy
volume = vol_1
path = /home/programy
### Dla Arcavir
vfs object = vscan-mksd
vscan-mksd: config-file = /etc/samba/vscan-arcavir.conf
### Dla Clamav
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
vfs objects = recycle
recycle:repository = /home/kosz
recycle:keeptree = True
recycle:versions = True
recycle:touch = True
recycle:exclude = *.tmp,*.jpg,*.avi
hosts allow = 192.168.0. localhost
browsable = yes
create mode = 0770
directory mode = 0770
write list = @users
oplocks = False
dos filetime resolution = True
Jest to przykladowa konfiguracja, nie bede sie tu rozpisywał bo sporo materiałów jest w sieci np. tu http://bofh.vt.pl/samba/ Nalezy zwrucić uwage na to ze w definicji [vol_1] jest zawarta obsługa recycled (kosza), jest to bardzo użyteczna funkcja, umozliwi odzyskania przypadkowo skasowanych plików przez uzytkowników.