I'd like to mount an ext4 partition with subfolders for multiple users
/data
user1/
user2/
...
just like /home
. Thus I copied the fstab entry of the /home
mouting,
UUID=... /data ext4 defaults 0 2
manually created the mount point
sudo mkdir /data
and created subfolders with the appropriate rights:
sudo mkdir /data/user1 && chown user1:user1 /data/user1
sudo mkdir /data/user2 && chown user2:user2 /data/user2
...
Though this allows the users to create files in their subfolder, they are not able to move them to trash.
I manually created the lost+found
folder with no luck.
# ls -al /data/ | grep lost
drwx------ 2 root root 4096 Okt 15 11:55 lost+found
What do I need to change to enable the trash?