[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Samba - nao funciona o veto files



Em Quinta 23 Agosto 2007 16:35, Márcio Pedroso escreveu:
> eu nunca usei essa opçao, eu nao sei se fiz certo. deem uma olhada e me
> digam o que acham
>
> [global]
>         workgroup = Cpdunimar
>         netbios name = Servidor Samba
>         security = share
>         server string = Servidor Samba Unimar
>         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> # Usuário Administrador de Domínio.
> # Esses usuários serão administradores do domínio.
> # São eles que adicionaram os hosts Windows no domínio
> # entre outras funções administrativas.
> # Pode ser informado vários usuários
> # separados por espaços e /ou grupos. No exemplo, usuários
> # marcio e o grupo cpd serão os administradores
>         admin users = Nginfo @cpd
> # O Servidor aceitará Logon dos usuários nas estações
>         domain logons = no
> # Corrige acentuação dos arquivos compartilhados
>         unix charset = iso8859-1
>         display charset = cp850
>         local master = no
>        # printcap name = cups
>        # load printers = yes
>        # printing = cups
>        # cups options = raw
>         encrypt passwords = yes
>         preferred master = yes
>         log level = 1
>         oplocks = yes
>         read raw = yes
>         write raw = yes
>         getwd cache = yes
>         #winbind use default domain = Yes
>         #winbind enum users = No
>         #winbind enum groups = No
>         #winbind nested groups = Yes
>         add machine script = /usr/sbin/adduser -n -r -g machines -c "Samba
> machine" -d /dev/null -s
> /bin/false %u
>        veto files = *.mp3
> [homes]
>         comment = Home Directories
>         browseable = no
>         writable = yes
>
> [publica]
>         comment = Diretorio Servidor
>         path = /media/sda1/publica
>         public = yes
>         read only = no
>         writeable = yes
>         create mask = 0777
>         guest ok = yes
>
> a pasta publica esta com todas as permiçoes, se precisarem de mais
> informaçoes.....


acho que voce deveria ter consultado a documentação antes. :D 

man smb.conf 

(...)
 This is a list of files and directories that are neither visible nor 
accessible. Each  entry  in  the  list must  be  separated  by  a '/', which 
allows spaces to be included in the entry. '*' and '?' can be used to specify 
multiple files or directories as in DOS wildcards.
Each entry must be a unix path, not a DOS path and must not include the unix 
directory separator '/'.
Note that the case sensitive option is applicable in vetoing files.
One feature of the veto files parameter that it is important to be aware of is 
Samba's behaviour when  trying  to delete a directory. If a directory that is 
to be deleted contains nothing but veto files this deletion will fail unless 
you also set the delete veto files parameter to yes.
Setting this parameter will affect the performance of Samba, as it will be 
forced to check  all  files  and directories for a match as they are scanned.
Examples of use include:

; Veto any files containing the word Security,
; any ending in .tmp, and any directory containing the
; word root.
veto files = /*Security*/*.tmp/*root*/
 ; Veto the Apple specific files that a NetAtalk server
; creates.
veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/


[ ]s, e divirta-se 
Henry



Reply to: