Hi, what do I have to do, to define a recycle folder outside a share e.g. the users home for each share? As far as I understand the default values, it's not allowed to leave the share folder. recycle:repository = /home/user/.recycle -- Viele Gr??e Andreas Hauffe
> > what do I have to do, to define a recycle folder outside a share e.g. the > users home for each share? > As far as I understand the default values, it's not allowed to leave the > share folder. > > recycle:repository = /home/user/.recycleI have the exact same problem. This used to work with Samba 3. I had a single Recycle for all shares, each user accessing his/her own files according to permissions. When I chaged to Samba 4 this wouldn't work anymore, it works only if I configure one recycle for each share.
Am Donnerstag, 5. M?rz 2015, 20:14:51 schrieb Miguel Medalha:> > what do I have to do, to define a recycle folder outside a share e.g. the > > users home for each share? > > As far as I understand the default values, it's not allowed to leave the > > share folder. > > > > recycle:repository = /home/user/.recycle > > I have the exact same problem. This used to work with Samba 3. I had a > single Recycle for all shares, each user accessing his/her own files > according to permissions. When I chaged to Samba 4 this wouldn't work > anymore, it works only if I configure one recycle for each share.Yes, I know. It used to work with Samba3. -- Viele Gr??e Andreas Hauffe
Am 05.03.2015 um 17:42 schrieb Andreas Hauffe:> what do I have to do, to define a recycle folder outside a share e.g. the > users home for each share?It was a long fight, and right now it works only for admin and my own userid, but this means that it is probably a permission problem. It seems that everybody needs write access in the .recycle folder. Maybe Samba 3 automatically set the correct unix rights bits, but now I'm using Windows ACLs. Maybe the required rights automatically propagate into the .recycle folder inside the share, but they must be set manually for a folder outside the share. Yesterday I granted write access to everybody. I hope that this will show the desired effect next week.
On 07/03/15 15:26, Klaus Hartnegg wrote:> Am 05.03.2015 um 17:42 schrieb Andreas Hauffe: >> what do I have to do, to define a recycle folder outside a share e.g. >> the >> users home for each share? > > It was a long fight, and right now it works only for admin and my own > userid, but this means that it is probably a permission problem. > > It seems that everybody needs write access in the .recycle folder. > > Maybe Samba 3 automatically set the correct unix rights bits, but now > I'm using Windows ACLs. > > Maybe the required rights automatically propagate into the .recycle > folder inside the share, but they must be set manually for a folder > outside the share. > > Yesterday I granted write access to everybody. I hope that this will > show the desired effect next week. >OK, it is a bug, this got my interest and yes, it would seem that you cannot use another path for the recycle dir, or so I thought until I found this: https://bugzilla.samba.org/show_bug.cgi?id=8637#c5 Added 'crossrename' to the vfs_objects line and it works! vfs objects = recycle crossrename ~~~~~~~~~~~~ recycle:repository = /Recycle/%U ls -la /Recycle/rowland total 12 drwx------ 2 EXAMPLE\rowland EXAMPLE\Domain Users 4096 Mar 7 16:51 . drwxrwxrwx 3 root root 4096 Mar 7 16:51 .. -rw-rwx--- 1 EXAMPLE\rowland EXAMPLE\Domain Users 16 Mar 7 16:51 temp.txt Rowland