Enviado em 16/01/2018 - 06:24h
Prezados!
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
preserve case = no
default case = upper
### ACL ###
nt acl support = yes
map acl inherit = yes
inherit permissions = yes
### LIXEIRA ###
vfs objects = recycle crossrename
crossrename:sizelimit = 2000
recycle:keeptree = yes
recycle:touch = yes
recycle:touch_mtime = yes
recycle:versions = yes
recycle:exclude = *.tmp, *.temp, *.log, *.ldb, *.o, *.obj, ~*.*, *.bak, *.iso
recycle:exclude_dir = tmp, temp, cache
ecycle:noversions = *.doc, *.sxw, *.odt, *.docx, *.xls, *.xlsx, *.ppt, *.pptx, *.sxc, *.ods, *.sxi, *.odp, *.pdf, *.txt
recycle:directory_mode = 2770
recycle:subdir_mode = 2770
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[DADOS]
comment = Diretório principal
path = /share/DADOS
read only = no
writable = yes
force create mode = 2770
force directory mode = 2770
[0001-AQRUIVO]
comment = Diretório do arquivo
path = /sahre/DADOS/0001-ARQUIVO
read only = no
browseable = no
writable = yes
valid users = @arquivo
force group = arquivo
create mask = 2770
force create mode = 2770
directory mask = 2770
force directory mode = 2770
recycle:repository = /share/DADOS/0001-AQRUIVO/0001-LIXEIRA