Liomar da Hora
2025-Aug-07 13:48 UTC
[Samba] Deleted files are not moved to the Samba recycle bin
Hello everyone, I'm using Samba, and it only moves the folder and doesn't move the files when they're deleted to the directory configured in recycle:repository. I was using version 2: 4.17.12+dfsg-0+deb12u1 on Debian BookWorm. I updated to version 4.22.3-Debian-4.22.3+dfsg-4~bpo12+1 and the problem persists. Write permissions were granted, so the folder is moved. During testing, I noticed that when the .recycler folder is configured on the same disk as the share, the files are moved, but if the .recycler folder is configured on another disk, even with full permissions, the files are not moved.
Rowland Penny
2025-Aug-07 15:05 UTC
[Samba] Deleted files are not moved to the Samba recycle bin
On Thu, 7 Aug 2025 10:48:10 -0300 Liomar da Hora via samba <samba at lists.samba.org> wrote:> Hello everyone, > I'm using Samba, and it only moves the folder and doesn't move the > files when they're deleted to the directory configured in > recycle:repository. > > I was using version 2: 4.17.12+dfsg-0+deb12u1 on Debian BookWorm. > > I updated to version 4.22.3-Debian-4.22.3+dfsg-4~bpo12+1 > and the problem persists. > > Write permissions were granted, so the folder is moved. > > During testing, I noticed that when the .recycler folder is > configured on the same disk as the share, the files are moved, but if > the .recycler folder is configured on another disk, even with full > permissions, the files are not moved.How have you set up the recycle bin ? Rowland
Liomar da Hora
2025-Aug-07 19:00 UTC
[Samba] Deleted files are not moved to the Samba recycle bin
How have you set up the recycle bin ? Rowland Hi, Here's my configuration: vfs objects = acl_xattr full_audit recycle recycle:repository = /mnt/trash/%U recycle:keeptree = yes recycle:versions = yes recycle:touch = yes recycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak, *.iso, *.mp3, *.mp4, *.avi, *.flv recycle:exclude_dir = /tmp /cache /mnt/trash It's a disk mounted only for deleted files. I have two hard drives mounted with shares. If I create a recycle bin on each of them, the deleted files will be moved to the recycle bin on that drive. Disk A doesn't move files to the recycle bin on any other drive. The same thing happens with disk B, even though it has full write permissions. I created another post because I didn't receive the email to reply to the old post. Em qui., 7 de ago. de 2025 ?s 10:48, Liomar da Hora <liomarhora at gmail.com> escreveu:> Hello everyone, > I'm using Samba, and it only moves the folder and doesn't move the files > when they're deleted to the directory configured in recycle:repository. > > I was using version 2: 4.17.12+dfsg-0+deb12u1 on Debian BookWorm. > > I updated to version 4.22.3-Debian-4.22.3+dfsg-4~bpo12+1 > and the problem persists. > > Write permissions were granted, so the folder is moved. > > During testing, I noticed that when the .recycler folder is configured on > the same disk as the share, the files are moved, but if the .recycler > folder is configured on another disk, even with full permissions, the files > are not moved. >