Please share your inputs on the following scenario.
Unix Path 1.
Permissions for /source/dir1/test.txt are
-rw-rw----+
Scenarios
Case 1: When this file is copied from Windows Explorer to the path /source/dir2
permissions become read only for the group:
-rw-r----+
getfacl text2 shows mask as
r--
Case 2: Unix cp command is used to test.txt from /source/dir1/ to /source/dir2/
permissions for test.txt in dir2 are
-rw-rw----+.
getfacl text2 shows mask as
rw-
For both the scenarios same userid belonging to the same unix group is used.
Do you know why permissions are different ?
- Is there a trigger or a way that unix server knows that file is being copied by an environment external to unix. ?
- Since the userid and the group is same is it an ACL setting/rule ?
- If 2 is yes, what is it ?
Any help is appreciated.