Arquivos - Samba

De Wiki NOC
(Diferença entre revisões)
 
Linha 1: Linha 1:
-
== Servidor de Arquivos - SAMBA ==
+
== SAMBA ==
-
'''Arquivo smb.conf.MODELO sem PDC:'''
+
* [[smb.conf - PADRÃO]]
-
 
+
* [[smb.conf - COM LIXEIRA]]
-
<pre>
+
* [[smb.conf - COM AUDITORIA]]
-
 
+
* [[smb.conf - COM LIXEIRA E AUDITORIA]]
-
 
+
-
[global]
+
-
        workgroup = <NOME DA EMPRESA>
+
-
        comment = Debian
+
-
        netbios name = arquivos
+
-
        printing = cups
+
-
        printcap name = cups
+
-
        printcap cache time = 750
+
-
        cups options = raw
+
-
        map to guest = Bad User
+
-
        username map = /etc/samba/smbusers
+
-
    ** hosts allow = 192.168.1. 192.168.0. --> (Ver a necessidade de usar esse parametro)
+
-
        obey pam restrictions = Yes
+
-
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
+
-
        log file = /var/log/samba/%U.log
+
-
        load printers = No
+
-
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
+
-
        domain logons = No
+
-
        domain master = No
+
-
        passdb backend = smbpasswd
+
-
        update encrypted = Yes
+
-
        null passwords = Yes
+
-
        encrypt passwords = Yes
+
-
        smb passwd file = /etc/samba/smbpasswd
+
-
        deadtime = 15
+
-
        dns proxy = no
+
-
        keepalive = 20
+
-
        max log size = 0
+
-
        debug level = 2
+
-
        vfs object = /usr/lib/samba/vfs/recycle.so
+
-
        recycle:repository = .lixeira
+
-
        recycle:keeptree = yes
+
-
        ldap suffix =
+
-
        vfs objects = /usr/lib/samba/vfs/recycle.so
+
-
        wins support = Yes
+
-
 
+
-
 
+
-
#### IMPRESSORAS
+
-
 
+
-
[printers]
+
-
  comment = All Printers
+
-
  browseable = no
+
-
  path = /var/spool/samba
+
-
  printable = yes
+
-
  guest ok = no
+
-
  read only = yes
+
-
  create mask = 0700
+
-
 
+
-
[print$]
+
-
  comment = Printer Drivers
+
-
  path = /var/lib/samba/printers
+
-
  browseable = yes
+
-
  read only = yes
+
-
  guest ok = no
+
-
 
+
-
 
+
-
##### COMPARTILHAMENTOS
+
-
 
+
-
[adm]
+
-
        path = /CAMINHO/administrativo
+
-
        admin users = root
+
-
        valid users = @admin
+
-
        read only = No
+
-
        write list = @adm
+
-
        force user = root
+
-
        force group = adm
+
-
        veto files = /*.mp3/*.wmv/*.wma/*.ogg/*.exe/
+
-
 
+
-
[vendas]
+
-
        path = /CAMINHO/vendas
+
-
        admin users = root
+
-
        valid users = @vendas
+
-
        read only = No
+
-
        write list = @vendas
+
-
        force user = root
+
-
        force group = vendas
+
-
        veto files = /*.mp3/*.wmv/*.wma/*.ogg/*.exe/
+
-
 
+
-
 
+
-
 
+
-
</pre>
+

Edição atual tal como 14h18min de 23 de junho de 2012

SAMBA

Ferramentas pessoais