COFFE
(usa Debian)
Enviado em 05/03/2024 - 14:06h
danniel-lara escreveu:
como esta o seu smb.conf ?
Segue smb.conf do fileserver
# Global parameters
[global]
netbios name = SERV-SP-FILES
dedicated keytab file = /etc/krb5.keytab
kerberos method = secrets and keytab
realm = AGRISTAR.PDC
security = ADS
server role = member server
winbind refresh tickets = Yes
workgroup = AGRISTAR
idmap config samdom : range = 10000 - 999999
idmap config samdom : backend = rid
idmap config * : range = 3000-7999
idmap config * : backend = tdb
map acl inherit = Yes
vfs objects = acl_xattr
##################Oculta pastas que o usuario não tem permissão
hide unreadable = yes
hide unwriteable files = no
################# Modificao para Windowns XP/2003
ntlm auth = YES
#Retrocompatibilidade - Para Server 2003
min protocol = NT1
#server min protocol = NT1
# lanman auth = yes
map to guest = Bad User
[share]
path = /media/share
read only = no
[Install]
comment = Install
inherit acls = Yes
path = /fileserve/Install/
locking = no
read only = no
#browsable = yes
guest ok = yes
[ISOs]
comment = Install
inherit acls = Yes
path = /fileserve/Install/.ISOs
locking = no
read only = no
#browsable = yes
guest ok = yes
# comment = Home
# path = /file-server/data/Homes/
# read only = No
#Shadow Copies
# vfs objects = shadow_copy2
# shadow:snapdir = /mnt/DADOS/SnapShot
# shadow:sort = desc
# shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
# shadow:localtime = yes
[Setores]
comment = Setores
path = /fileserve/data/Setores
inherit permissions = Yes
inherit acls = Yes
map acl inherit = Yes
#browsable = no
writable = yes
locking = no
read only = no
veto files =/*.mp3/*.avi/*.mpg/*.wma
#Shadows Copies
vfs objects = shadow_copy2
shadow:snapdir = /mnt/DADOS/SnapShot/
shadow:sort = desc
shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
shadow:localtime = yes
[Certificados]
comment = Setores
path = /fileserve/data/Certificados-Digitais
inherit permissions = Yes
inherit acls = Yes
map acl inherit = Yes
#browsable = no
writable = yes
locking = no
read only = no
veto files =/*.mp3/*.avi/*.mpg/*.wma
#Shadow Copies
vfs objects = shadow_copy2
shadow:snapdir = /mnt/DADOS/SnapShot/
shadow:sort = desc
shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
shadow:localtime = yes
#[DADOS_GO]
# comment = Setores
# path = /mnt/serv-ozn-pdc01
# inherit permissions = Yes
# inherit acls = Yes
# map acl inherit = Yes
browsable = yes
# writable = yes
# locking = no
# read only = no
# veto files =/*.mp3/*.avi/*.mpg/*.wma
[Diretoria$]
comment = Diretores
path = /fileserve/data/Diretoria/
inherit permissions = Yes
inherit acls = Yes
map acl inherit = Yes
#browsable = no
writable = yes
locking = no
read only = no
#Shadows Copies
vfs objects = shadow_copy2
shadow:snapdir = /mnt/DADOS/SnapShot/
shadow:sort = desc
shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
shadow:localtime = yes
[RH$]
comment = Setor RH
path = /fileserve/data/RH/
inherit permissions = Yes
inherit acls = Yes
map acl inherit = Yes
#browsable = no
writable = yes
locking = no
read only = no
#Shadows Copies
vfs objects = shadow_copy2
shadow:snapdir = /mnt/DADOS/SnapShot/
shadow:sort = desc
shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
shadow:localtime = yes
# [TI$]
# comment = Setor TI
# path = /file-server/data/TI/
# inherit permissions = Yes
# inherit acls = Yes
# map acl inherit = Yes
# #browsable = no
# writable = yes
# locking = no
# read only = no
# #Shadow Copies
# vfs objects = shadow_copy2
# shadow:snapdir = /mnt/DADOS/SnapShot
# shadow:sort = desc
# shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
# shadow:localtime = yes
[DADOS_G]
comment = Dados G
path = /fileserve/data/data_g/
read only = No
#browsable = no
force create mode = 0777
force directory mode = 0777
inherit permissions = Yes
inherit acls = Yes
map acl inherit = Yes
force user = root
#Shadows Copies
vfs objects = shadow_copy2
shadow:snapdir = /mnt/DADOS/SnapShot/
shadow:sort = desc
shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
shadow:localtime = yes
#force user = administrador
#force group = administrador
#read only = No
#guest ok = Yes
#locking = No
#oplocks = No
#[BKP_NOVO]
# comment = BKP_NOVO
# path = /mnt/bkp_novo
# read only = No
#browsable = no
# force create mode = 0777
# force directory mode = 0777
# veto files =/*.mp3/*.avi/*.mpg/*.wma
#Shadow Copies
# vfs objects = shadow_copy2
# shadow:snapdir = /mnt/DADOS/SnapShot
# shadow:sort = desc
# shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
# shadow:localtime = yes
#[data]
# path = /file-server/data/
# inherit permissions = Yes
# inherit acls = Yes
# map acl inherit = Yes
# browsable =yes
# writable = yes
# locking = no
# read only = no
#Shadow Copies
# vfs objects = shadow_copy2
# shadow:snapdir = /mnt/DADOS/SnapShot
# shadow:sort = desc
# shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
# shadow:localtime = yes
[Etiquetas]
path = /fileserve/data/setores/Operações/Etiquetas e Gravuras
inherit permissions = Yes
inherit acls = Yes
map acl inherit = Yes
#browsable = no
writable = yes
locking = no
read only = no
veto files =/*.mp3/*.avi/*.mpg/*.wma
#Shadow Copies
vfs objects = shadow_copy2
shadow:snapdir = /mnt/DADOS/SnapShot/
shadow:sort = desc
shadow:format = @SNPFILESERSAP_%Y.%m.%d-%H.%M.%S
shadow:localtime = yes