leandrorocha
(usa Debian)
Enviado em 14/10/2009 - 15:10h
Magno, fiz as alterações porém não foram bem sucedidas. Veja como ficou.
#======================= Global Settings =======================
[global]
comment = Dominio TESTE.NET (SAMBA Server)
workgroup = teste.net
logon script = LOGON.BAT
security = user
server string = TESTE.NET <SAMBA Server - Dominio>
announce as = NT Server
netbios name = schumacher
admin users = leandrorocha
wins support = yes
dns proxy = no
name resolve order = host wins bcast
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = no
syslog = 0
panic action = /usr/share/samba/panic-action %d
# nt acl support = yes
# map acl inherit = Yes
# browse list = yes
####### Authentication #######
security = user
encrypt passwords = yes
# smb passwd file = /etc/samba/smbpasswd
passdb backend = tdbsam
# obey pam restrictions = yes
# utmp = yes
guest account = nobody
# unix password sync = yes
passwd program = /usr/bin/smbpasswd %u
password level = 0
os level = 100
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
# pam password change = no
lanman auth = yes
client lanman auth = yes
client NTLMv2 auth = Yes
client lanman auth = Yes
client plaintext auth = Yes
########## Printing ##########
load printers = no
# printing = bsd
# printcap name = /etc/printcap.cups
# printing = cups
# printcap name = cups
# printer admin = @ntadmin
######## File sharing ########
preserve case = yes
short preserve case = yes
############ Misc ############
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
domain master = yes
domain logons = yes
local master = yes
os level = 33
prefered master = yes
logon path = \\%L\profiles\%U
logon home = \\%L\%U
logon drive = H:
template shell = /bin/bash
# security mask = 0770
# force security mode = 0
# directory security mask = 2770
# force directory security mode = 0
## LIXEIRA DO SAMBA
recycle:exclude = *.tmp *.temp *.o *.obj ~$*
recycle:keeptree = True
recycle:touch = True
recycle:versions = True
recycle:noversions = .doc|.xls|.ppt
recycle:repository = .recycle
recycle:maxsize = 10000000
vfs objects = recycle
add machine script = /usr/sbin/adduser -n -r -g estacoes -c "schumacher" -d /dev/null -s /bin/false %u
#======================= Share Definitions =======================
[homes]
comment = Home Directories
#veto files = /*.cda/*.mp3//*.bat/
browseable = no
writable = yes
create mask = 0600
directory mask = 0700
hide unreadable = no
#[netlogon]
# comment = NETLOGON
# writable = yes
# browseable = no
# public = no
# path = /home/samba/netlogon
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = yes
browseable = no
share modes = no
read only = yes
[profiles]
comment = %U
#veto files = /*.cda/*.mp3/*.bat/
path =/home/profiles
public = no
writable = yes
browseable = no
printable = no
create mask = 0600
directory mask = 0700