Samba, várias configurações

Links:
http://www.vivaolinux.com.br/artigo/Samba-Integracao-com-ClamAV-e-outras-coisas-uteis?pagina=1
http://www.vivaolinux.com.br/artigo/Configuracao-simples-Samba-+-LDAP
http://www.vivaolinux.com.br/artigo/Gerando-arquivos-PDF-atraves-do-SAMBA


Link Abaixo: http://www.vivaolinux.com.br/perguntas/verPergunta.php?codigo=28957

Faça com que seus usuários autentiquem em um domínio do NT. Neste caso é mandatório o share "netlogon", pois lá que você vai colocar os scripts de logon, arquivos de policiamento (o famoso config.pol).

Esta configuração estava autenticando em LDAP, mas tirei para deixá-la mais simples, autenticando na base de dados do sistema mesmo. Note que esta configuração está com um anti-vírus em sua configuração, mas se você quiser, pode desabilitar...

Tome cuidado com os paths pois são diferentes dos seus. Cuidado com os diretórios dos usuários (/home/usuario), pois /home/usuario nunca deve ter permisão 777, e sim, 700, ok?

[]s,
m0f0x

smb.conf:
#############################################
# #
# smb.conf: Samba server configuration file #
# #
#############################################


#####################
# Global parameters #
#####################
[global]

# Domain/name/description
workgroup = TESTGROUP
netbios name = BASSET-HOUND
server string = Woof-woof!

# Printing
printcap name = cups
printing = cups
cups options = "raw"
use client driver = yes
show add printer wizard = no

# Network interfaces
interfaces = lo, eth0
bind interfaces only = yes

# Message/log level
log level = 2
log file = /var/log/samba/samba.log
max log size = 100000
syslog = 0
debug timestamp = yes

# This server will act as PDC (Primary Domain Controller)
security = user
domain logons = yes
preferred master = yes
domain master = yes
os level = 65

# WINS support
wins support = no

# Passwords will be...?
encrypt passwords = yes
null passwords = no

# Logon path
logon path = \\%L\profile
logon home = \\%L\home
logon drive = H:

# Logon script (DOS textfile format)
logon script = logon.cmd

# Allow users from "Domain Admins" group to join the domain
enable privileges = yes

# Administrative users
admin users = @adm

# Recommended optimizations from
# http://us4.samba.org/samba/docs/man/Samba-Guide/se...
smb ports = 139 445
name resolve order = wins bcast hosts
utmp = yes
time server = yes
template shell = /bin/false
winbind use default domain = no
map acl inherit = yes
strict locking = yes

# TCP/sockect options
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# Charset support (intl support)
dos charset = CP850
unix charset = ISO8859-1

# Don't try to lock these files
veto files = /*.eml/*.nws/*.{*}/
veto oplock files = /*.doc/*.xls/*.mdb/

# Yeah. We can hide something!
hidedotfiles = yes

# Simulate Windows's Recycle Bin
recycle:repository = .trash
recycle:keeptree = true
recycle:touch = true
recycle:versions = true
recycle:exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.$$$
recycle:excludedir = /tmp
ecycle:noversions = .doc|.xls|.ppt|.dbf|.nsx|.idx|.dbt
recycle:maxsize = 0

# Virus scanner: samba-vscan
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf


##########
# Shares #
##########
[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = yes
browseable = no
writable = no
share modes = no
read only = yes
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

[home]
comment = %U's home
path = /home/users/%U
browseable = yes
writeable = yes
create mask = 0600
directory mask = 0700
vfs objects = recycle
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

[profile]
comment = %U's profile
path = /home/users/%U/.profile
browseable = yes
guest ok = yes
profile acls = yes
writeable = yes
create mask = 0600
directory mask = 0700
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

[printers]
comment = Printers
path = /var/spool/samba
printable = Yes
guest ok = Yes
browseable = no
printer admin = @adm



Link: http://www.guiadohardware.net/dicas/lixeira-samba.html
[global]
workgroup = GRUPO
netbios name = SERVIDOR
vfs objects = recycle
recycle:keeptree = yes
recycle:versions = yes
recycle:repository = /var/samba/trash/%U
recycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak, *.iso
recycle:exclude_dir = tmp, cache
[engenharia]
path = /mnt/sda2/engenharia
writable = yes
valid users = +engenheiros
[gerencia]
path = /mnt/gerencia
writable = yes
valid users = paulo, rebeca
hosts allow = micro3, micro4
browseable = no
[lixeira]
path = /var/samba/trash/%U
writable = yes
Link Interessante: http://www.guiadohardware.net/artigos/samba3/

Link Interessante: http://planeta.ubuntubrasil.org/post/2212

LInk Interessante: http://www.vivaolinux.com.br/conf/categoriaIndex.php?codigo=12
Share this article :
 

Postar um comentário

 
Navegando pela Net - All Rights Reserved
Proudly powered by Blogger