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? for example: home->User1-> .recycle home->User2-> .recycle home->User3-> .recycle Thanks and best regards. Micha
Try recycle:repository = %U/.recycle Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Micha Ballmann via samba > Verzonden: maandag 9 maart 2020 14:00 > Aan: samba at lists.samba.org > Onderwerp: [Samba] [home] trash folder > > Hi, > > i have a share called [home]. Designed like described here: > https://wiki.samba.org/index.php/User_Home_Folders#Creating_th > e_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? > > for example: > > home->User1-> .recycle > home->User2-> .recycle > home->User3-> .recycle > > Thanks and best regards. > > Micha > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
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
thank you very much. it never occurred to me that I could work with wildcards here :-D thanks Am 09.03.2020 um 15:42 schrieb L.P.H. van Belle via samba:> Try > > recycle:repository = %U/.recycle > > > Greetz, > > Louis > > >> -----Oorspronkelijk bericht----- >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens >> Micha Ballmann via samba >> Verzonden: maandag 9 maart 2020 14:00 >> Aan: samba at lists.samba.org >> Onderwerp: [Samba] [home] trash folder >> >> Hi, >> >> i have a share called [home]. Designed like described here: >> https://wiki.samba.org/index.php/User_Home_Folders#Creating_th >> e_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? >> >> for example: >> >> home->User1-> .recycle >> home->User2-> .recycle >> home->User3-> .recycle >> >> Thanks and best regards. >> >> Micha >> >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> >> >
thanks for your answer i undestand! micha Am 09.03.2020 um 17:03 schrieb Rowland penny via samba:> 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 > >