12

I have a couple of Samba shares on my NAS running Debian Squeeze which I access through Windows 7. Deleting any of the files from Windows will completely delete the files from the NAS server.

Is there anyway to have a similar feature installed like the Trash/Recycle Bin? It would be nice if there even was a similar concept as Delete, file goes to trash and is deleted, ShiftDelete, file is deleted and no keep copy is kept anywhere.

Is there such thing I could install?

1

1 Answer 1

17

I think you're looking for the vfs_recycle module to Samba.

In your smb.conf file for a given share:

[share] Path = /data/share vfs objects = recycle recycle:repository = .recycle recycle:keeptree = yes recycle:versions = yes 
3
  • Does this configuration supports the Shift+Delete feature to permanently delete the file as mentioned by the OP? Commented Dec 18, 2021 at 19:42
  • @m7913d not sure, hadn't tried it. I suspect it will. Commented Dec 19, 2021 at 13:09
  • No, it does not. Even files shift-deleted are moved to the recycle bin. Commented Jun 22, 2024 at 10:25

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.