Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

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( ).

Keywords

vs100

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   
Actions