Duplicating files - cp: preserving times for - Operation not permitted
Files have the same group and group has write permissions but I always get this error:
Command 'cp -p -r -f "SomeFile.php" "/target/path/to/file/SomeFile.php"'
failed with return code 1 and error message
cp: preserving times for '/target/path/to/file/SomeFile.php': Operation not permitted.
Stat info for both files:Current dir : "/source/path/to/file/SomeFile.php"
Duplicate to : "/target/path/to/file/SomeFile.php"
File: "/source/path/to/file/SomeFile.php" Size: 39981 Blocks: 80 IO Block: 4096 regular file Device: fc01h/64513d Inode: 659763 Links: 1 Access: (0775/-rwxrwxr-x) Uid: ( 1003/userA) Gid: ( 1001/ group1) File: "/source/path/to/file/SomeFile.php" Size: 39981 Blocks: 80 IO Block: 4096 regular file Device: fc01h/64513d Inode: 2632005 Links: 1 Access: (0775/-rwxrwxr-x) Uid: ( 1001/ userB) Gid: ( 1001/ group1)