arquivos não vão para a lixeira [RESOLVIDO]

1. arquivos não vão para a lixeira [RESOLVIDO]

Fabio Lima
fly

(usa Conectiva)

Enviado em 21/12/2012 - 17:25h

olá, configurei o arquivo smb.conf no centOS 6.3, mas ao excluir os arquivos não vão para a lixeira
acesso normalmente o diretorio dados pelo windows e crio os arquivos normalmente dentro dele.


#======================= Global Settings =====================================

[global]


#valid users = root
# ----------------------- Network Related Options ------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
workgroup = Laboratorio

; tbios name = MYSERVER

interfaces = lo eth0 172.19.11.139/24
hosts allow = 127. 172.19.10. 172.19.11.

# --------------------------- Logging Options -----------------------------
#
# Log File let you specify where to put logs and how to split them up.
#
# Max Log Size let you specify the max size log files should reach

# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50


# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.

#
# Security must be set to domain or ads
#
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
#
# Use password server option only with security = server or if you can't
# use the DNS to locate Domain Controllers
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *


security = share
; passdb backend = tdbsam
; realm = MY_REALM

; password server = <NT-Server-Name>

# ----------------------- Domain Controller Options ------------------------

# Security must be set to user for domain controllers
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
#
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
#
# Domain Logons let Samba be a domain logon server for Windows workstations.
#
# Logon Scrpit let yuou specify a script to be run at login time on the client
# You need to provide it in a share called NETLOGON
#
# Logon Path let you specify where user profiles are stored (UNC path)
#
# Various scripts can be used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
#
; security = user
; passdb backend = tdbsam

; domain master = yes
; domain logons = yes

# the login script name depends on the machine name
; logon script = %m.bat
# the login script name depends on the unix user used
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
# disables profiles support by specifing an empty path
; logon path =

; add user script = /usr/sbin/useradd "%u" -n -g users
; add group script = /usr/sbin/groupadd "%g"
; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"

# ----------------------- Browser Control Options ----------------------------
#
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
#
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
#
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; local master = no
; os level = 33
; preferred master = yes

# ----------------------- Browser Control Options ----------------------------
#
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
#
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
#
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; local master = no
; os level = 33
; preferred master = yes

# --------------------------- Printing Options -----------------------------
#
# Load Printers let you load automatically the list of printers rather
# than setting them up individually
#
# Cups Options let you pass the cups libs custom options, setting it to raw
# for example will let you use drivers on your Windows clients

# Printcap Name let you specify an alternative printcap file
#
# You can choose a non default printing system using the Printing option

# load printers = yes
# cups options = raw

; printcap name = /etc/printcap
#obtain list of printers automatically on SystemV
; printcap name = lpstat
; printing = cups

# --------------------------- Filesystem Options ---------------------------
#
# The following options can be uncommented if the filesystem supports
# Extended Attributes and they are enabled (usually by the mount option
# user_xattr). Thess options will let the admin store the DOS attributes
# in an EA and make samba not mess with the permission bits.
#
# Note: these options can also be set just per share, setting them in global
# makes them the default for all shares

; map archive = no
; map hidden = no
; map read only = no
; map system = no
; store dos attributes = yes

[lixo]

vfs object = recycle
path = /lixo/%U
writable = yes
recycle:keeptree = yes
recycle:versions = yes
recycle:repository = /lixo/%U
recycle:exclude = *.tmp, *log, *.obj, ~*.*, *bak, *.iso
recycle:exclude_dir = tmp, cache



#============================ Share Definitions ==============================

[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S


[dados]

comment = Dados
public = yes
path = /dados
read only = No
writable = yes
create mask = 0777
directory mask = 0777
veto files = /*.inf/*.mp3/*.mp4/*.wma/*.wmv/*.ogg/*.wav/*Recycled*/

[lixo]
path = /lixo/%U
writable = yes

;]printers]



# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
; [Profiles]
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes


# A publicly accessible directory, but read only, except for people in
# the "staff" group
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff




  


2. Re: arquivos não vão para a lixeira [RESOLVIDO]

M4iir1c10
m4iir1c10

(usa Arch Linux)

Enviado em 21/12/2012 - 18:47h


olá, configurei o arquivo smb.conf no centOS 6.3, mas ao excluir os arquivos não vão para a lixeira
acesso normalmente o diretorio dados pelo windows e crio os arquivos normalmente dentro dele.

Nao entendi a pergunta... Voce configurou o smb.conf certo!, ao excluir os aquivos nao vao para a lixeira, certo!. Acesso normalmente o diretorio dados pelos windows e crio arquivos dentro dele, certo!

Eu nao entendi a sua duvida... todos esses comportamentos sao normais.

Se voce acessa a pasta do windows pelo linux e deleta o arquivo ele nao vai para a lixeira... se voce acessa uma pasta compartilhada pelo windows e normal voce ler os dados e criar arquivos dentro do mesmo...


3. Re: arquivos não vão para a lixeira [RESOLVIDO]

Fabio Lima
fly

(usa Conectiva)

Enviado em 22/12/2012 - 10:22h

então amigo, primeiramente agradeço pela disposição em me ajudar !

quando eu acesso o diretorio \lixo pelo linux não tem nada, ja exclui trocentos arquivos

[root@lab lixo]# ls -la
total 8
drwxr-xr-x 2 root root 4096 Dez 21 12:28 .
dr-xr-xr-x. 25 root root 4096 Dez 21 12:28 ..
[root@lab lixo]#



obs: ja crei um novo diretorio e ja ate dei um chmod 777 e nada,



4. Re: arquivos não vão para a lixeira [RESOLVIDO]

5. Re: arquivos não vão para a lixeira [RESOLVIDO]

Fabio Lima
fly

(usa Conectiva)

Enviado em 22/12/2012 - 16:24h

tá osso !

já tinha feito isso antes,mas fiz de novo e nada.


[dados]

comment = Dados
public = yes
path = /dados
read only = No
writable = yes
create mask = 0777
directory mask = 0777
veto files = /*.inf/*.mp3/*.mp4/*.wma/*.wmv/*.ogg/*.wav/*Recycled*/
vfs object = /usr/lib/samba/vfs/recycle.so
vfs options = /etc/samba/recycle.conf

uma outra coisa que fiz tambem é colocar a lixeira na seção global, nada


tks !!!
===========================================================================

pergunta de iniciante, não tem o arquivo recycle.conf ? será que é por isso ?


[root@lab /]# find -name '*recycle.conf*'
[root@lab /]# updatedb
[root@lab /]# locate recycle.conf
[root@lab /]# man locate
[root@lab /]# cd /etc/samba
[root@lab samba]# ls
lmhosts smb.conf smbusers
[root@lab samba]#



6. Re: arquivos não vão para a lixeira [RESOLVIDO]

Fabio Lima
fly

(usa Conectiva)

Enviado em 02/01/2013 - 11:25h

fly escreveu:

tá osso !

já tinha feito isso antes,mas fiz de novo e nada.


[dados]

comment = Dados
public = yes
path = /dados
read only = No
writable = yes
create mask = 0777
directory mask = 0777
veto files = /*.inf/*.mp3/*.mp4/*.wma/*.wmv/*.ogg/*.wav/*Recycled*/
vfs object = /usr/lib/samba/vfs/recycle.so
vfs options = /etc/samba/recycle.conf

uma outra coisa que fiz tambem é colocar a lixeira na seção global, nada


tks !!!
===========================================================================

pergunta de iniciante, não tem o arquivo recycle.conf ? será que é por isso ?


[root@lab /]# find -name '*recycle.conf*'
[root@lab /]# updatedb
[root@lab /]# locate recycle.conf
[root@lab /]# man locate
[root@lab /]# cd /etc/samba
[root@lab samba]# ls
lmhosts smb.conf smbusers
[root@lab samba]#



* estou perguntando justamente pq mecho com linux a pouco tempo

obrigado !



7. Re: arquivos não vão para a lixeira [RESOLVIDO]

Fabio Lima
fly

(usa Conectiva)

Enviado em 03/01/2013 - 08:53h

consegui resolver.


8. Re: arquivos não vão para a lixeira [RESOLVIDO]

André Canhadas
andrecanhadas

(usa Debian)

Enviado em 03/01/2013 - 08:58h

fly escreveu:

consegui resolver.


Legal que conseguiu seria bom colocar qual foi a solução para ajudar outros com o mesmo problema.
Abraço






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts