Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Programming API CopyFileFromHostToGuest( ) and CopyFileFromGuestToHost( ) Reset Permission Bits (2318633)

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

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 8 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? (4000 or fewer characters)
  • 8 Ratings
Actions
KB: