lucasmendes96
(usa Debian)
Enviado em 05/05/2021 - 16:30h
Olá pessoal, tenho um servidor samba com integração kerberos com active directory na minha rede e depois de reiniciar o samba não consigo mais acessar os compartilhamentos dele consigo enxerga-los mas não abrir. Como se houvesse algum problema de rede.
Tentei varias coisas de diversos fóruns porém nada funciona.
Alguém consegue alguma dica?
Abraço.
smb.conf
[global]
workgroup = ALJ
security = ADS
realm = JUVENIL.NET.BR
netbios name = SRVCOMUNICACAO
dedicated keytab file = /etc/krb5.keytab
kerberos method = secrets and keytab
server string = Samba 4 Client %h
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
winbind separator = +
winbind expand groups = 4
winbind nss info = rfc2307
winbind refresh tickets = Yes
winbind offline logon = yes
winbind normalize names = Yes
## map ids outside of domain to tdb files.
#idmap backend = ad
idmap config *:backend = tdb
#idmap config *:schema_mode = rfc2307
idmap config *:range = 20000-29999
## map ids from the domain the ranges may not overlap !
idmap config ALJ:backend = rid
idmap config ALJ:schema_mode = rfc2307
idmap config ALJ:range = 1000000-2999999
idmap config ALJ:default = yes
idmap_ldb:use rfc2308 = yes
domain master = no
local master = no
preferred master = no
os level = 20
map to guest = bad user
host msdfs = no
# user Administrator workaround, without it you are unable to set privileges
username map = /etc/samba/user.map
# For ACL support on domain member
vfs objects = acl_xattr
map acl inherit = Yes
store dos attributes = Yes
# Share Setting Globally
unix extensions = no
reset on zero vc = yes
veto files = /.bash_logout/.bash_profile/.bash_history/.bashrc/
hide unreadable = yes
log file = /usr/local/samba/var/log.%m
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
[hd1]
comment = Disco HD1
path = /externo/publico/hd1
browseable = yes
#inherit permissions = yes
#inherit acls = yes
create mask = 777
directory mask = 777
force create mode = 777
force directory mode = 777
#writable = yes
#read only = no
#guest ok = yes
valid users = "ALJ+administrador",@"ALJ+hd1w",@"ALJ+hd1r"
write list = @"BUILTIN+administradores",@"ALJ+hd1w"
[hd2]
comment = Disco HD2
path = /externo/publico/hd2
#inherit permissions = yes
#inherit acls = yes
create mask = 777
directory mask = 777
force create mode = 777
force directory mode = 777
#writable = yes
#read only = no
#guest ok = yes
valid users = #"ALJ+administrador",@"ALJ+hd2w",@"ALJ+hd2r"
write list = @"BUILTIN+administradores",@"ALJ+hd2w,"
[cameras]
comment = Disco Cameras
path = /externo/imagens/cameras
#inherit permissions = yes
#inherit acls = yes
create mask = 777
directory mask = 777
force create mode = 777
force directory mode = 777
#writable = yes
#read only = no
#guest ok = yes
valid users = "ALJ+administrador",@"ALJ+camw",@"ALJ+camr"
write list = @"BUILTIN+administradores",@"ALJ+camw"
[lixeira$]
comment = Disco Lixeira
path = /externo/publico/lixeira
inherit permissions = yes
inherit acls = yes
create mask = 700
directory mask = 700
force create mode = 777
force directory mode = 777
writable = no
read only = yes
valid users = ALJ\administrador
write list = ALJ\administrador
[Backups$]
comment = Disco Backups
path = /backup
inherit permissions = yes
inherit acls = yes
create mask = 700
directory mask = 700
force create mode = 777
force directory mode = 777
writable = no
read only = yes
valid users = ALJ\administrador
write list = ALJ\administrador
[Fototeca]
comment = Disco HD1
path = /externo/publico/hd1/Fototeca
browseable = yes
#inherit permissions = yes
#inherit acls = yes
create mask = 777
directory mask = 777
force create mode = 777
force directory mode = 777
#writable = yes
#read only = no
#guest ok = yes
valid users = "ALJ+administrador",@"ALJ+hd1w",@"ALJ+hd1r"
write list = @"BUILTIN+administradores",@"ALJ+hd1w"