Recycle bin in user folder

NethServer Version: 7.9
Module: SMB

Is possible to enable recycle bin in user folder ?

Yes:

Create a template custom

mkdir -p /etc/e-smith/templates-custom/etc/samba/smb.conf
cd /etc/e-smith/templates-custom/etc/samba/smb.conf
vi 71hometrash

In 71hometrash copy the following code

#
# 71hometrash (custom)
# add Recycle Bin to user directories
#
[homes]
vfs objects = recycle
  recycle: exclude_dir = /tmp|/temp|/cache
  recycle: repository = Recycle Bin
  recycle: versions = True
  recycle: keeptree = True
  recycle: touch = True
  recycle: directory_mode = 0770
  recycle: exclude = *.tmp|*.temp|*.o|*.obj|~$*

Then activate the change with the following commands

expand-template /etc/samba/smb.conf
service smb restart
5 Likes

it work.
great
Thanks

1 Like