node-wp-cli
node-wp-cli copied to clipboard
How to run command as another user
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!