Programming API CopyFileFromHostToGuest( ) and CopyFileFromGuestToHost( ) Reset Permission Bits
Details
The Programming API CopyFileFromHostToGuest( ) and
CopyFileFromGuestToHost( ) functions do not preserve any permission
bits when copying a file between host and guest. The permissions on
the destination file are set to the owner's default values, which
typically allow only read and write by the owner. For example, if
the execute bit is set for the file owner on the Linux host, and
you use CopyFileFromHostToGuest( ) to copy the file to a Linux
guest, the copy in the guest has the execute bit cleared.
Solution
If you want to execute the file in the Linux guest, you need to use
chmod after CopyFileFromHostToGuest( ).