comfaa
(usa Debian)
Enviado em 20/10/2008 - 10:53h
cara, ve se é isso que vc quer:
[global]
netbios name = COMPUTADOR
workgroup = EMPRESA
printing = cups
cups options = "raw,media=a4"
load printers = yes
username map = /etc/samba/users.map
domain logons = yes
security = user
map to guest = never
wins support = yes
add machine script = /usr/sbin/useradd -d / -c 'Conta de confianca para a maquina %u' -g maquina -s /bin/false -m %u
logon drive = z:
logon script = "%U.bat"
logon home =
logon path =
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
pam password change = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
log level = 3 passdb:5 auth:10 winbind:2
time server = yes
character set = ISO8859-1
client code page = 850
unix charset = "CP850"
use sendfile = no
[IPC$]
admin users = root adm1 adm2
path = /ipc
[netlogon]
path = /arquivos/netlogon
browseable = yes
writable = yes
public = yes
write list = root
[homes]
path = /arquivos/%U
browseable = no
writable = yes
[financeiro]
comment = Area do Departamento Finandeiro
path = /arquivos/financeiro
browseable = no
guest ok = no
valid users = root, @financeiro, @ti
write list = root, @financeiro, @ti
force group = financeiro
create mask = 0664
directory mask = 2775
[faturamento]
comment = Area do Departamento de Faturamento
path = /arquivos/faturamento
browseable = no
guest ok = no
valid users = root, @faturamento, @ti
write list = root, @faturamento, @ti
force group = faturamento
create mask = 0664
directory mask = 2775
[ti]
comment = Area do Departamento de Tecnologia
path = /arquivos/ti
browseable = no
guest ok = no
valid users = root, @ti
write list = root, @ti
force group = ti
create mask = 0664
directory mask = 2775
[gerencia]
comment = Area da Gerencia
path = /arquivos/gerencia
browseable = no
guest ok = no
valid users = root, @gerencia, @ti
write list = root, @gerencia, @ti
force group = gerencia
create mask = 0664
directory mask = 2775
[recepcao]
comment = Area do Departamento de recepcao
path = /arquivos/recepcao
browseable = no
guest ok = no
valid users = root, @recepcao, @ti
write list = root, @recepcao, @ti
force group = recepcao
create mask = 0664
directory mask = 2775
[publico]
comment = Area Publica da EMPRESA
path = /arquivos/publico
browseable = no
guest ok = no
valid users = root, @mvalenca
write list = root, @mvalenca
force group = mvalenca
create mask = 0666
directory mask = 2777
**** Se tiver alguma dúvida, me fala ****
Abraços