NamoMitK
Dabbler
- Joined
- Sep 3, 2015
- Messages
- 28
I'm using CIFS and Windows permissions.
I have a folder where all of my files are downloaded to called Downloads. Permissions are set so only I (and my downloader user) have permission to use this folder. Once a download is complete it is moved automatically to another folder which has read and execute permissions for another group which access the share.
The moved file retains the permissions from the original parent and shows that Inheritance is disabled. If I move a file via Windows explorer, everything happens correctly. The issue is only when a file is moved within unix.
Anyway to tell 'mv' something like "resetAcl"?? <--- made up flag....
This is what getfacl shows for a file that is 'mv' from the Downloads folder to the Movies folder.
This is what getfacl shows for a file that is 'cp' and then the original is 'rm'.
Since this is all automated scripted plugins (I didn't write) I don't want to go mucking around and change instances of mv with a cp/rm action if I can help it.
I have a folder where all of my files are downloaded to called Downloads. Permissions are set so only I (and my downloader user) have permission to use this folder. Once a download is complete it is moved automatically to another folder which has read and execute permissions for another group which access the share.
The moved file retains the permissions from the original parent and shows that Inheritance is disabled. If I move a file via Windows explorer, everything happens correctly. The issue is only when a file is moved within unix.
Anyway to tell 'mv' something like "resetAcl"?? <--- made up flag....
This is what getfacl shows for a file that is 'mv' from the Downloads folder to the Movies folder.
Code:
# file: Testing10/ # owner: namomitk # group: cifsadmins group@:rwxpDdaARWcCo-:fd----:allow owner@:rwxpDdaARWcCo-:fd----:allow
This is what getfacl shows for a file that is 'cp' and then the original is 'rm'.
Code:
# file: FolderWithCorrectPerms/ # owner: namomitk # group: cifsadmins group@:rwxpDdaARWcCo-:fd----:allow group:cifsusers:r-x---a-R-c---:fd----:allow owner@:rwxpDdaARWcCo-:fd----:allow
Since this is all automated scripted plugins (I didn't write) I don't want to go mucking around and change instances of mv with a cp/rm action if I can help it.