Article 5EYZK Creating a Trash Directory for Linux on a TrueNAS NFS Share Drive

Creating a Trash Directory for Linux on a TrueNAS NFS Share Drive

by
jasonc3a
from LinuxQuestions.org on (#5EYZK)
I have a vdev running on my TrueNAS system, set up as an NFS share. When I connect to it on a Linux machine and attempt to send a file to trash, I get the warning
Quote:
Unable to find or create trash directory for media/{user}/{mountpoint}
I attempted to create a trash bin for the uid and gid I'm connecting as on my Linux machine (1000) by going to the highest possible folder in the heirarchy of the mountpoint and trying:
Code:$ sudo mkdir .-p /.Trash-1000/{expunged,files,info}and attempted to delete a test file, but I got the same warning.
Looking at how the share was configured in Sharing/NFS/Edit on TrueNAS, I saw that Mapall User" was set to nobody," as was Mapall Group." My understand is that Mapall *" sets whatever user accessing the shared drive as that specified user and group. Looking under Accounts/Users and Accounts/Groups, the UID and GID of nobody" are both 65534. I tried
Code:$ sudo mkdir .-p /.Trash-65534/{expunged,files,info}Nothing changed, so I thought that it might have to do with the permissions so I tried
Code:$ sudo chmod -R 770 ./.Trash-65534/I did this for both iterations of the .Trash-* directory, and this didn't change the message either. Is there something that I'm missing about setting up a trash directory? It seems like it should be simple, but I can't figure it out.latest?d=yIl2AUoC8zA latest?i=2enqzdfhHTI:ovQIj16Gn0I:F7zBnMy latest?i=2enqzdfhHTI:ovQIj16Gn0I:V_sGLiP latest?d=qj6IDK7rITs latest?i=2enqzdfhHTI:ovQIj16Gn0I:gIN9vFw2enqzdfhHTI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments