[Samba] permission problem with vfs object recycle:directory_mode

Nicolas me at electronico.nc
Sat Jul 23 06:58:57 UTC 2016


Well,

Despite I've recently answered about vfs  object recycle on this list, 
it seems that it isn't working as excepted.

Using Samba 4.4.5, compiled from sources

Here is the conf for a share:
[musique]
         path = /media/data/musique
         read only = No
         vfs objects = acl_xattr recycle
         recycle:directory_mode = 0770
         recycle:subdir_mode = 0700
         recycle:versions = Yes
         recycle:keeptree = Yes
         recycle:touch = Yes
         recycle:repository = .recycle
         full_audit:prefix = %U|%I|%S
         full_audit:success = connect disconnect mkdir rmdir open read 
write rename opendir unlink
         full_audit:failure = open write mkdir rmdir rename unlink
         full_audit:facility = local5
         full_audit:priority = NOTICE


recycle:directory_mode parameter is NEVER applied to the .recycle 
directory, default 0700 is ALWAYS applied (whatever value is set to 
recycle:directory_mode).

Tested several times by :
modify smb.conf
killall samba
/usr/local/samba/sbin/samba

Thanks in advance for for help.

Nicolas

(It turns out that only the first user who deletes a file has access to 
.recycle, files deleted by other users are unlinked, manually setting 
0770 perms on .recycle makes it working as expected)





More information about the samba mailing list