pulumi-command icon indicating copy to clipboard operation
pulumi-command copied to clipboard

Set permissions/ownership of file that is copied

Open spott opened this issue 3 years ago • 0 comments

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Allow for changing the ownership/permissions of the file that is copied to the remote host. Ideally, this would take advantage of sudo if needed.

The use case is: you have set up a regular user with sudo permissions and an ssh key on the remote host (with something like cloud-init), and you want to add a file to /etc/ for a service that needs to be owned by a specific user. If your regular user doesn't have permission to write to /etc/, you need a way to escalate their permissions.

This would also be important for removing or editing the file.

spott avatar Sep 30 '22 18:09 spott