[global]
security = ADS
netbios name = bollywood
realm = DETRAN.PA.GOV.BR
server string = %h server (samba %v, ubuntu)
password server = terra.detran.pa.gov.br
workgroup = DETRANPA
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = no
template homedir = /home/%D/%U
template shell = /bin/bash
client use spnego = yes
domain master = no
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
#security = ads
#realm = DETRAN.PA.GOV.BR
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
domain master = no
#idmap backend = lwopen
#idmap uid = 50-9999999999
#idmap gid = 50-9999999999
#template shell = /bin/bash
usershare allow guests = yes
# comment = Printer Drivers
# path = /var/lib/samba/printers
[home]
comment = %U directory
writeable = yes
path = %H
Valid Users = %U
inherit permissions = yes
[Bollywood]
Comment = Servidor do CJ
read only = no
path = /home/bollywood
browseable = no
Valid Users =@DETRANPA\bollywood
writeable = yes
inherit permissions = yes
[Publico]
comment = Diretorio Publico
read only = no
path = /home/publico
browseable = yes
writeable = yes