node-wp-cli icon indicating copy to clipboard operation
node-wp-cli copied to clipboard

How to run command as another user

Open jose-nunez opened this issue 7 years ago • 0 comments

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!

jose-nunez avatar Sep 16 '17 03:09 jose-nunez