Dears, i setting a samba with shared server in me enviroment but i do not knew enable trash for this. What setting i need for enable trash in me samba? I search links in google for enable trash in samba4 but i do not give help. Below my smb.conf: [global] # Substituir xxxxxx pelo nome do domínio desejado caso necessário workgroup = oduvaldocozzi # Substituir xxxxxx pelo nome do servidor caso necessário netbios name = ocozzi server string = desktopcasa domain master = yes preferred master = yes local master = yes domain logons = no logon path = %systemroot%\%u # #logon script = todos.bat # security = user @root # encrypt passwords = yes # os level = 200 # # time server = yes # unix charset = iso8859-1 # display charset = cp850 # # ##Arquivo de log log file = /var/log/samba/%m.log max log size = 5000 debug level = 2 ##Encrypta as senhas digitadas na rede, porém não funciona em estações## Windows 95 e Windows 3.11 smb passwd file = /etc/samba/smbpasswd username map = /etc/samba/smbusers ##Garantir melhor desempenho do servidor socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 # ##Permite a utilização de impressoras compartilhas em estações Linux # load printers=yes # printing=lprng # printcap name = /etc/printcap [users] path = /mnt/HD2/oduvaldocozzi.d/public_shared valid users = user administrador casa coringa force group = smbshared create mask = 0660 directory mask = 0770 writable = yes # vfs objects = recycle # recycle:repository = .recycle # recycle:keeptree = yes # recycle:versions = yes [restrito] path = /mnt/HD2/oduvaldocozzi.d/ valid users = administrador casa coringa force group = smbocozzi create mask = 0660 directory mask = 0770 writable = yes [rodrigo] path= /mnt/home/casa/Documentos/Rodrigo/Estudos.de.Filosofia-SPA valid users = administrador casa force group = smbocozzi create mask = 0660 directory mask = 0770 writable = yes I comment someone diretives in [users] shared enviroment because do not work. Rergards, -- Atenciosamente, Rodrigo da Silva Cunha São Gonçalo, RJ - Brasil
Rodrigo Cunha via samba wrote:> Dears, > i setting a samba with shared server in me enviroment but i do not knew > enable > trash for this. > What setting i need for enable trash in me samba? >---- I think you mean a "recycling bin" -- where deleted files go and possibly can be retrieved by a sys-admin? I don't know of a per-user retrievable recycling bin, but that doesn't mean it doesn't exist. :-) I notice below that you have your recycling bin commented out (disabled). Maybe getting that to work is the key to what you want? (I'm going to have to experiment with some of the new options in that vfs module)...documented on the vfs_recycle manpage. -l> [users] > path = /mnt/HD2/oduvaldocozzi.d/public_shared > valid users = user administrador casa coringa > force group = smbshared > create mask = 0660 > directory mask = 0770 > writable = yes > # vfs objects = recycle > # recycle:repository = .recycle > # recycle:keeptree = yes > # recycle:versions = yes > >
Hi Rodrigo, The Samba recycle option does not create a Recycle Bin in the network share in the way Windows expects to see it. What it does is to use the location defined by "recycle:repository" to store deleted files and folders. Users can then browse that location to recover files. While I'm sure that's not what you (or most of us for that matter) expected from the recycle options, it does provide pretty close to the same functionality by allowing deleted files to be recovered. It simply means that users have to be educated in how to use the facility. regards, John On 11/01/17 12:23, Rodrigo Cunha via samba wrote:> Dears, > i setting a samba with shared server in me enviroment but i do not knew > enable > trash for this. > What setting i need for enable trash in me samba? > I search links in google for enable trash in samba4 but i do not give help. > Below my smb.conf: > > [global] > # Substituir xxxxxx pelo nome do domínio desejado caso necessário > workgroup = oduvaldocozzi > # Substituir xxxxxx pelo nome do servidor caso necessário > netbios name = ocozzi > server string = desktopcasa > domain master = yes > preferred master = yes > local master = yes > domain logons = no > logon path = %systemroot%\%u > > # #logon script = todos.bat > # security = user @root > # encrypt passwords = yes > # os level = 200 > # > # time server = yes > # unix charset = iso8859-1 > # display charset = cp850 > # > # ##Arquivo de log > log file = /var/log/samba/%m.log > max log size = 5000 > debug level = 2 > > ##Encrypta as senhas digitadas na rede, porém não funciona em estações## > Windows 95 e Windows 3.11 > smb passwd file = /etc/samba/smbpasswd > username map = /etc/samba/smbusers > > ##Garantir melhor desempenho do servidor > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > > # ##Permite a utilização de impressoras compartilhas em estações Linux > # load printers=yes > # printing=lprng > # printcap name = /etc/printcap > > > > [users] > path = /mnt/HD2/oduvaldocozzi.d/public_shared > valid users = user administrador casa coringa > force group = smbshared > create mask = 0660 > directory mask = 0770 > writable = yes > # vfs objects = recycle > # recycle:repository = .recycle > # recycle:keeptree = yes > # recycle:versions = yes > > [restrito] > path = /mnt/HD2/oduvaldocozzi.d/ > valid users = administrador casa coringa > force group = smbocozzi > create mask = 0660 > directory mask = 0770 > writable = yes > [rodrigo] > path= /mnt/home/casa/Documentos/Rodrigo/Estudos.de.Filosofia-SPA > valid users = administrador casa > force group = smbocozzi > create mask = 0660 > directory mask = 0770 > writable = yes > I comment someone diretives in [users] shared enviroment because do not > work. > Rergards,