Bug 10171 - vfs recycle share will never delete: ignores setting
vfs recycle share will never delete: ignores setting
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: File services
x64 Linux
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2013-09-27 23:51 UTC by kev
Modified: 2013-09-27 23:51 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description kev 2013-09-27 23:51:09 UTC
If I share out the recycling directory, despite exclude settings in smb.conf, if I mount the recycling directory from Windows and then delete a file, it burrows it further into the recycling directory.

From my smb.conf:

vfs objects =  recycle
      recycle:keeptree = yes
      recycle:versions = yes
      recycle:touch = yes
      recycle:exclude = ?~$*,~$*,*.tmp,index*.pl,index*.htm*,*.temp,*.TMP
      recycle:exclude_dir=  /tmp,/temp,/cache,/path/to/srv/recycle/*
      recycle:repository = /path/to/srv/recycle/%U/%P
      recycle:noversions = *.doc,*.xls,*.ppt
comment = your network-deleted files; stale files auto-deleted after 60 days, or 14 days if over 50 MB
path = /path/to/srv/recycle/%U/%P/path/to/srv


Steps to Reproduce (from Windows 2k3 or XP client):

1) Mount recycle as R:
2) Delete a file from another mounted drive; in this e.g., user's home drive H:
3) It appears in R:\users\me, correctly.
4) Delete it from R:\users\me.

Actual Results: Instead of being ignored due to the smb.conf rule "recycle:exclude_dir", it appears in R:\recycle\me\path\to\srv\users\Me.

Expected Results: To not see the file deleted from R:, anywhere, anymore.

Build & Platform: SerNet Samba 4.0.9 on CentOS 6.4 x86_64