Trash/Recycle Bin structure for remote volumes

Hello forum,


I am running Samba to share a large volume over a 10Gb network connection. I edit photos and videos off this share and also have a Windows host that uses this share on occasion, hence my need for Samba.


I would like to know what the directory and permission structure MacOS is looking for on this share in terms of a Recycle Bin or Trash folder. I have my share configured as follows:


[argon]
  path = /mnt/argon
  writable = yes
  guest ok = yes
  recycle:exclude_dir = .recycle
  recycle:touch = Yes
  recycle:versions = Yes
  recycle:keeptree = Yes
  recycle:directory_mode = 2775
  recycle:repository = .recycle/%U


When I delete a file on my Mac, the file is correctly moved to .recycle/<username>/old-directory-structure. However, my Mac does not believe this share has a Recycle Bin. When deleting photos from Lightroom, I am prompted with the following:


So my question is, what is the proper way to configure the Recycle Bin path and permissions to eliminate this error message from appearing?


MacOS Ventura 13.1


# samba -V
Version 4.13.13-Debian


# zfs -V
zfs-2.1.7-pve3
zfs-kmod-2.1.7-pve3


# zfs get xattr
NAME    PROPERTY  VALUE  SOURCE
argon   xattr     sa     local

MacBook Pro 16″, macOS 13.1

Posted on Feb 10, 2023 9:18 AM

Reply

Similar questions

1 reply

Feb 10, 2023 11:29 AM in response to kcrawford20

Lat time I poked this (which, I admit, was a while ago), it seemed there was no support for Samba recycle with MacOS... not sure whether the issue is with Samba or MacOS, but I suspect it has more to do with Apple and how it manages the .Trash folder for multiple users across multiple volumes (essentially, the Trash you see is a union of all attached .Trashes, filtered by your own UID (so you don't see other's deleted files)).


As an aside, if you're using Samba with MacOS clients, you really need to dig into https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html which cover some significant performance boosts.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Trash/Recycle Bin structure for remote volumes

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.