[Samba] Recycle with path outside the share
rowlandpenny at googlemail.com
Sat Mar 7 10:05:37 MST 2015
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.
>> 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
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
More information about the samba