rafamello
(usa Ubuntu)
Enviado em 19/12/2011 - 12:30h
Nessa parte não tenho muita noção, mas pelo que vi é nas homes dos usuários, mas eu adiciono os usarios sem adicionar home
(adduser --disabled-login --no-create-home usuario)
uso esse comando.
o smb.conf ta assim
[global]
server string = %h server (Documentos, Dados Real Atacado)
map to guest = Bad User
username level = 2
preserve case = no
default casa = lower
local master = yes
os level = 100
preferred master = yes
wins support = yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = yes
panic action = /usr/share/samba/panic-action %d
netbios name = Server Documentos
workgroup = REAL
#######################################################################
...
[administrativo]
path = /mnt/administrativo
writable = yes
comment = Administrativo
valid users = +ti, lais, marli, mara,
[caixa]
path = /mnt/caixa
writable = yes
comment = planilha caixa
valid users = +ti, caixa, andreia
[consultas]
path = /mnt/consultas
writable = yes
comment = Consultas
valid users = +ti, raquel, andreia, carla
[clientes]
path = /mnt/clientes
writable = yes
comment = Clientes
valid users = +ti, catia, josi, andreia, raquel, carla, caixa
[deposito]
path = /mnt/deposito
writable = yes
comment = Deposito
valid users = +ti, everton, mariana, daniel, carlos, ana, marlon, luciano, deposito, marciel, marli
[deposito1]
path = /mnt/deposito1
writable = yes
comment = Arquivos XML
valid users = +ti, ana, douglas, marli
[malotes]
path = /mnt/malotes
writable = yes
comment = Malotes
valid users = +ti,
[financeiro]
path = /mnt/financeiro
writable = yes
comment = Financeiro
valid users = +ti, marli, mara, lais, valeria, cilene, admin
[ponto]
path = /mnt/ponto
writable = yes
comment = ponto diflores real
valid users = +ti, sirio
[rh]
path = /mnt/rh
writable = yes
comment = Recursos Humanos
valid users = +ti, sirio, leticia, luceli, patricia
[vendas]
path = /mnt/vendas
writable = yes
comment = Vendas
valid users = +ti, raquel, andreia
[bkp]
path = /mnt
writable = yes
comment = yes
valid users = +ti
################################################################################
# Auditoria
full_audit:success = open, opendir, write, unlink, rename, mkdir, rmdir
full_audit:prefix = %u|%I|%S
full_audit:failure = none
full_audit:facilit = local5
full_audit:priority = notice
# Antivirus
scannedonly: domain_socket = False
scannedonly: portnum = 2020
scannedonly: scanhost = localhost
scannedonly: hide_noscanned_files = True
# Lixeira
recycled:keeptree = yes
recycle:versions = yes
recycle:repository = /lixeira/%U
recycle:exclude = *.tmp, *.log, *.iso, *.wav, *.mp3, *.wmv, *.avi
recycle:excludir = tmp, cache
[lixeira]
comment = Lixeira – %U
path = /lixeira/%U
valid users = %U
create mask = 0700
directory mask = 0700
browseable = yes
read only = no
vfs object = scannedonly
# Antivirus
scannedonly: domain_socket = False
scannedonly: portnum = 2020
scannedonly: scanhost = localhost
scannedonly: hide_noscanned_files = True
[quarentena]
comment = Diretorio de quarentena
path = /quarentena
valid users = admin
create mask = 0700
directory mask = 0700
browseable = no
read only = no