SOLVED Permission inheriting issue when moving files

Status
Not open for further replies.

f4242

Explorer
Joined
Mar 16, 2017
Messages
97
Hi,

On my SMB share, there is a directory where every users have a subdir named with their name. Everyone can deposit file to this directory, but only the "owner" can read content. Let's call this a deposit box. All deposit boxes are located inside the same ZFS dataset.

Everything work fine if someone transfer a file from its PC to someone else deposit box.

The problem occurs when user A try to move a file received from its deposit box to the deposit box of user B. The permission of the moved file is preserved (so only user A can read the file even if the file is now located in the deposit box of B).

Every deposit box have permission inherit enabled, but this is ignored when a file is moved. Is it possible to force moved files to inherit from the parent directory?

Thanks.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Hi,

On my SMB share, there is a directory where every users have a subdir named with their name. Everyone can deposit file to this directory, but only the "owner" can read content. Let's call this a deposit box. All deposit boxes are located inside the same ZFS dataset.

Everything work fine if someone transfer a file from its PC to someone else deposit box.

The problem occurs when user A try to move a file received from its deposit box to the deposit box of user B. The permission of the moved file is preserved (so only user A can read the file even if the file is now located in the deposit box of B).

Every deposit box have permission inherit enabled, but this is ignored when a file is moved. Is it possible to force moved files to inherit from the parent directory?

Thanks.
Yes. Enable the "winmsa" VFS module in your samba share.
 

f4242

Explorer
Joined
Mar 16, 2017
Messages
97
This work great. Thanks!
 
Status
Not open for further replies.
Top