elintonn
(usa Fedora)
Enviado em 08/08/2012 - 13:37h
Aê pessoal... dei uma enxugada (Copiei por SSH) e retirei algumas linhas que estavam comentadas.
#
#======================= Global Settings =====================================
[global]
# ----------------------- Network-Related Options -------------------------
workgroup = NOSSO_GRUPO_LOCAL
server string = NOME_ATUAL
netbios name = SERVIDOR01
;
interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
; max protocol = SMB2
# --------------------------- Logging Options -----------------------------
# log files split per-machine:
log file = /var/log/samba/log.%m
# maximum size of 50KB per log file, then rotate:
max log size = 50
# ----------------------- Standalone Server Options ------------------------
security = share
passdb backend = tdbsam
# ----------------------- Domain Members Options ------------------------
;security = domain
;passdb backend = tdbsam
;realm = MY_REALM
;password server = <NT-Server-Name>
# ----------------------- Domain Controller Options ------------------------
;security = user
;passdb backend = tdbsam
;domain master = yes
;domain logons = yes
;add user script = /usr/sbin/useradd "%u" -n -g users
;add group script = /usr/sbin/groupadd "%g"
;add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
;delete user script = /usr/sbin/userdel "%u"
;delete user from group script = /usr/sbin/userdel "%u" "%g"
;delete group script = /usr/sbin/groupdel "%g"
# ----------------------- Browser Control Options ----------------------------
#----------------------------- Name Resolution -------------------------------
;wins support = yes
;wins server = w.x.y.z
;wins proxy = yes
;dns proxy = yes
# --------------------------- Printing Options -----------------------------
load printers = yes
cups options = raw
;printcap name = /etc/printcap
# obtain a list of printers automatically on UNIX System V systems:
;printcap name = lpstat
;printing = cups
# --------------------------- File System Options ---------------------------
;map archive = no
;map hidden = no
;map read only = no
;map system = no
;store dos attributes = yes
#============================ Share Definitions==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
;valid users = %S
;valid users = MYDOMAIN\%S
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[netlogon]
;comment = Network Logon Service
;path = /var/lib/samba/netlogon
;guest ok = yes
;writable = no
;share modes = no
[Profiles]
;path = /var/lib/samba/profiles
;browseable = no
;guest ok = yes
[public]
;comment = Public Stuff
;path = /home/samba
;public = yes
;writable = yes
;printable = no
;write list = +staff
# Nome do Compartilhamento
[Sistema]
# Descriçao do compartilhamento
comment = Sistema ERP
# Caminho da pasta
path = /home/sistema
# Acessada por todos
public = yes
# visivel na rede
browseable = yes
# permitira escrita
writable = yes
# somente leitura
read only = no
# mascara de criacao
create mask = 0777
# Mascara dos diretorios
directory mask = 0777
# Nome do Compartilhamento
[Publico]
# Descriçao do compartilhamento
comment = Arquivos Publicos
# Caminho da pasta
path = /home/publico
# Acessada por todos
public = yes
# visivel na rede
browseable = yes
# permitira escrita
writable = yes
# somente leitura
read only = no
# mascara de criacao
create mask = 0777
# Mascara dos diretorios
directory mask = 0777