devsoldi
(usa Debian)
Enviado em 24/07/2023 - 13:37h
root@webserver:~# cat /etc/samba/smb.conf
[global]
domain master = yes
domain logons = yes
dns proxy = no
encrypt passwords = true
null passwords = yes
#interfaces = eth0 lo
#hosts allow = 127. 192.168.1. 192.168.10. 192.168.11.
#socket options = TCP_NODELAY SO_RCVBUF=121072 SO_SNDBUF=131072
panic action = /usr/share/samba/panic-action %d
case sensitive = no
# winbind use default = yes
max log size = 1000
dead time = 0
preferred master = yes
passdb backend = tdbsam
debug level = 2
map to guest = never
#map untrusted to domain = Yes
security = user
workgroup = WORKGROUP
server string = Servidor de Arquivos
comment = Servidor de Arquivos
netbios name = webserver
log file = /var/log/samba/log.%m
os level = 254
#log level = 1
unix password sync = no
admin users = root suporte
load printers = yes
ntlm = yes
ntlm auth = yes
write cache size = 384000
#Cenex
log level = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
dead time = 15
getwd cache = yes
# Sincroniza senhas com o Linux
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd chat debug = yes
unix password sync = yes
[HTML]
comment = pasta web
path = /var/www/
valid users = Cenex
write list = +Cenex
create mask = 777
force create mode = 777
directory mask = 777
force user = www-data
force group = Cenex
[DadosCenex]
comment = pasta DadosCenex
path = /var/DadosCenex
valid users = +Cenex
write list = +Cenex
create mask = 777
force create mode = 777
directory mask = 777
force user = Cenex
force group = Cenex
[CursosCenex]
comment = pasta CursosCenex
path = /var/CursosCenex
valid users = +Cenex
write list = +Cenex
create mask = 777
force create mode = 777
directory mask = 777
force user = Cenex
force group = Cenex
#[WEB_01TB]
# comment = pasta web 01 TB
# path = /var/1TB-Cenex
# valid users = +Cenex
# write list = +Cenex
# create mask = 777
# force create mode = 777
# directory mask = 777
# force user = Cenex
# force group = webserver
root@webserver:~#