ncampos
(usa Debian)
Enviado em 11/11/2015 - 16:13h
Apos Alguns testes consegue chegar ao que eu precisava. Diretórios compartilhados com acesso total,e diretórios com acesso somente leitura e execução.
unica situaçao que nao testei foi os log's...
Caso for util para alguém,segue meu smb.conf
[global]
workgroup = SRV_DADOS
server string = Dados
dns proxy = no
interfaces = lo eth0 eth1 eth2 eth3
bind interfaces only = true
log level = 1
log file = /var/log/samba.log
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
guest account = nobody
invalid users = root
passwd program = /usr/bin/passwd %u
### LOG SAMBA ##
max log size = 1000
vfs objects = full_audit
full_audit:success = write, unlink, rename, rmdir, chmod, chown
full_audit:prefix = %u|%I|%S
full_audit:failure = none
full_audit:facility = local5
full_audit:priority = notice
################################################################################################
## REDE COM ACESSO AO SERVIDOR #####
hosts allow = 192.168.0.
## PLACA DE REDE DE ESCUTA #####
interfaces = eth0
bind interfaces only = yes
######## lixeira ############
vfs objects = recycle
recycle:keeptree = yes
recycle:versions = no
recycle:repository = /home/lixeira/
recycle:exclude = *.iso
[lixeira]
path = /home/lixeira/
comment = arquivos deletados vao a esse diretorio
#usuarios com permissao de acesso
valid users = +diretoria, +gestores
#usuarios com permissao de alteracao
write list = natha, marcos ,batista
############################### jobdados #########################################
[jobdados]
comment = Pasta jobdados - Servidor Linux
path = /home/jobdados
writable = yes
############################### Suporte ###########################################
[suporte]
comment = Suporte
path = /home/suporte
writable = yes
############################### scripts-banco-dados #################################
[scripts-banco-dados]
path = /home/jobdados/scripts-banco-dados/
#usuarios com permissao de acesso
valid users = +desenvolvimento, +suporte, +diretoria, +gestores
#usuarios com permissao de alteracao
write list = rain, natha, marcos ,batista