Skip to content

How to run command as another user #17

Description

@jose-nunez

Hi. Not sure if this question goes here.
How can I run commands as the actual user who runs Worpdress, and not as the one who is running Node JS. Does it make sense?
I'm running WP.core.download and the result is the whole directory owned by the Node runner (admin or root), but I need it to be owned by the sites's owner. I know I can perform a chmod myself, but it would be useful if I can do it through the library.
Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions