I've set up a windows share for multi user access with defined Acl using the webui.
I've also ticked the "use a trash/recyclebin" option in the share.
I've also ticked the "inherit acl" option and the multi user one, to keep my Acl working.
All the rights i've set were working really nice so far until it comes to this ./recycle bin.
Typically i've created an admin user owning everything in the share with RWX + a group lets call it "TRASHMEMBERS" owning this recycle bin with RWX, while its only WX for others. (dont want people to access certain files but still want them to be able to delete and send it to the recycle bin)
What's happening so far is the user who deletes a file that he created, then automatically get the ownership of his file and it become impossible for the groupmembers of "TRASHMEMBERS" to delete it/recover it even though they have every rights on the parent folder (recyclebin).
Also i tried to desactivate the treelike (keeptree = yes) in smb.conf and setting it with "no" doesnt change anything.
Btw it seems the /etc/samba/smb.conf file is getting overwritten after any webui change/restart.
Here's is a look at the smb.conf :
#======================= Global Settings================== [global] workgroup = WORKGROUP server string = %h server dns proxy = no log level = 0 syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 syslog only = yes panic action = /usr/share/samba/panic-action %d encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = no passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssucces$ pam password change = yes socket options = TCP_NODELAY IPTOS_LOWDELAY guest account = nobody load printers = no disable spoolss = yes printing = bsd printcap name = /dev/null unix extensions = yes wide links = no create mask = 0777 directory mask = 0777 use sendfile = yes aio read size = 16384 aio write size = 16384 null passwords = no local master = yes time server = no wins support = no #======================= Share Definitions================ [sms-omv-nas] path = /media/7bbf91ea-8b4e-48de-825a-ed831c5df81e/partagewindows/ guest ok = no read only = no browseable = yes inherit acls = yes inherit permissions = yes ea support = no store dos attributes = no vfs objects = recycle recycle:repository = .recycle/%U recycle:keeptree = yes recycle:versions = yes recycle:touch = yes recycle:directory_mode = 0777 recycle:subdir_mode = 0700 recycle:exclude = recycle:exclude_dir = recycle:maxsize = 0 printable = no create mask = 0755 force create mode = 0644 directory mask = 0755 force directory mode = 0755 hide dot files = yes valid users = invalid users = read list = write list =
So lets say i have user "admin" owner of everyfiles, group "TRASHMEMBERS" owning the ./recycle directory, if my user John deletes a file, it's actually going in the ./recycle directory as : owner = John, groupowner = users and that sucks
Any help pls?