joaoaraujo
(usa openSUSE)
Enviado em 30/08/2013 - 08:30h
#======================= Global Settings =======================
[global]
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
admin users = joao
obey pam restrictions = yes
enable privileges = yes
time server = yes
passwd program = /usr/bin/passwd %u
dns proxy = no
netbios name = Socrates
logon script = %U.bat
invalid users = root
local master = yes
workgroup = OFFICE
os level = 100
security = user
usershare allow guests = yes
add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
max log size = 1000
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY
logon drive = H:
domain master = false
username map = /etc/samba/user.map
map to guest = bad user
encrypt passwords = yes
winbind trusted domains only = yes
winbind use default domain = yes
passdb backend = tdbsam
logon home = \\%N\%U\.profiles
wins support = true
server string = Servidor de Arquivos Linux
logon path = \\%N\profiles\%U
syslog = 0
panic action = /usr/share/samba/panic-action %d
preferred master = yes
pam password change = yes
domain logons = yes
## Browsing/Identification ###
; wins support = no
; wins server = w.x.y.z
; interfaces = 127.0.0.0/8 eth0
; bind interfaces only = true
; syslog only = no
; guest account = nobody
; logon path = \\%N\%U\profile
; load printers = yes
; printing = bsd
; printcap name = /etc/printcap
; printing = cups
; printcap name = cups
; include = /home/samba/etc/smb.conf.%m
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash
; winbind enum groups = yes
; winbind enum users = yes
; usershare max shares = 100
;[homes]
; comment = Home Directories
; browseable = no
; read only = yes
; create mask = 0700
; directory mask = 0700
; valid users = %S
[netlogon]
; comment = Network Logon Service
path = /home/samba/netlogon
; guest ok = yes
read only = yes
browseable = no
; share modes = no
[profiles]
; comment = Users profiles
path = /home/samba/profiles
; guest ok = no
browseable = no
create mask = 0600
directory mask = 0700
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
; write list = root, @ntadmin
;[cdrom]
; comment = Samba server's CD-ROM
; read only = yes
; locking = no
; path = /cdrom
; guest ok = yes
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
;[Publico]
;comment = Arquivos de Socrates
;path = /matrix/publico #(Informe o caminho da pasta que voc\EA que quer compartilhar, pode ser /home/voce)
;public = yes
;browseable = yes
;writable = yes
;read only = no
;create mask = 0700 #(ter\E3o a permiss\E3o rwx somente para o root)
;directory mask = 0700
[Publico]
writeable = yes
guest account = yes
invalid users = root
path = /matrix2/shared/publico
force group = users
veto files = /*.mp3/*.mpg/*.mpeg/*.avi/
public = yes
create mode = 660
directory mode = 750
;recyclebin options
vfs objects = recycle
recycle:keeptree = yes
recycle:versions = yes
recycle:repository = /matrix2/shared/lixeira
recycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak, *.iso
recycle:exclude_dir = tmp
[Clientes]
vfs objects = recycle
recycle:exclude_dir = tmp
writeable = yes
path = /matrix2/shared/clientes
write list = @users
force group = users
recycle:keeptree = yes
revalidate = yes
recycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak, *.iso
create mode = 777
recycle:versions = yes
recycle:repository = /matrix2/shared/lixeira
directory mode = 775
#invalid users =
[Home]
writeable = yes
invalid users = root,h2a
path = /matrix2/shared/homes
write list = @users
force directory mode = 775
force group = users
force create mode = 775
revalidate = yes
veto files = /*.mp3/*.mpg/*.mpeg/*.avi/*.wmv/*.wma/*.flv/*.mov/*.mid/*.midi/
create mode = 775
directory mode = 775
[Lixeira]
writeable = yes
path = /matrix2/shared/lixeira
write list = @users
force group = users
revalidate = yes
valid users = @quota
create mode = 777
directory mode = 777
[Musicas]
guest account = yes
writeable = yes
invalid users =
path = /matrix3/shared/musicas
write list = @users
force group = users
revalidate = yes
valid users = @users
create mode = 777
public = yes
directory mode = 777