Here's the other one. Below is the test output: linuxadmin@linuxvm20:/mnt/TestShare/Feb18$ touch file11 linuxadmin@linuxvm20:/mnt/TestShare/Feb18$ chmod 0727 file11 linuxadmin@linuxvm20:/mnt/TestShare/Feb18$ getcifsacl file11 # filename: file11 REVISION:0x1 CONTROL:0x8004 OWNER:LINUXDOMAIN\linuxadmin <<< GROUP:LINUXDOMAIN\Domain Users ACL:NT Authority\SYSTEM:ALLOWED/0x0/FULL ACL:BUILTIN\Users:ALLOWED/0x0/READ ACL:LINUXDOMAIN\linuxadmin:ALLOWED/0x0/FULL <<< ACL:LINUXDOMAIN\Domain Users:DENIED/0x0/0xd0131 ACL:LINUXDOMAIN\Domain Users:ALLOWED/0x0/0x1f01de ACL:\Everyone:ALLOWED/0x0/FULL linuxadmin@linuxvm20:/mnt/TestShare/Feb18$ chown lxsmbrw file11 linuxadmin@linuxvm20:/mnt/TestShare/Feb18$ getcifsacl file11 # filename: file11 REVISION:0x1 CONTROL:0x8004 OWNER:LINUXDOMAIN\lxsmbrw <<< new owner GROUP:LINUXDOMAIN\Domain Users ACL:NT Authority\SYSTEM:ALLOWED/0x0/FULL ACL:BUILTIN\Users:ALLOWED/0x0/READ ACL:LINUXDOMAIN\lxsmbrw:ALLOWED/0x0/FULL <<< ACE updated with new owner ACL:LINUXDOMAIN\Domain Users:DENIED/0x0/0xd0131 ACL:LINUXDOMAIN\Domain Users:ALLOWED/0x0/0x1f01de ACL:\Everyone:ALLOWED/0x0/FULL -- Regards, Shyam
Attachment:
0002-cifs-Change-SIDs-in-ACEs-while-transferring-file-own.patch
Description: Binary data