[Samba] [home] trash folder

Rowland penny rpenny at samba.org
Mon Mar 9 16:03:47 UTC 2020


On 09/03/2020 12:59, Micha Ballmann via samba wrote:
> Hi,
>
> i have a share called [home]. Designed like described here: 
> https://wiki.samba.org/index.php/User_Home_Folders#Creating_the_Home_Folder_for_a_New_User. 
>
>
> First i have no problems but i want to enable a trash folder for each 
> user. At this time i have about 8000 home directories. The directorys 
> are subfolders from [home].
>
> Is it possible to enable a trash folder inside the home directory for 
> each user?
>
> I enabled successful a trash folder with vsf_recycle by a specific share.
>
> [test]
>         path = /media/cephfs/samba/c_test/00_test
>         read only = No
>         vfs objects = recycle
>         recycle:versions = yes
>         recycle:keeptree = yes
>         recycle:repository = .recycle
>
> But how can i do this when a folder is a subfolder from a share?

You do not need to set 'recycle:repository = .recycle', it is the 
default, but you could replace '.recycle' with an explicit path to where 
you want the recycle bin created e.g. 'recycle:repository = 
/media/cephfs/samba/c_test/00_test/.recycle/%U'

Rowland




More information about the samba mailing list