I am on an Ubuntu 18.04 local dev environment, running a WP Multisite 5.5.3

Three Part Question:

1.) What (who) is the WP-Cli user? And,

2.) How do I give that user permission to "my_user's" home directory?

3.) Should I be worried from a security standpoint about giving the WP-Cli home directory access?


1 Answer 1


Yes, I will accept the "newbie" embarrassment and answer my basic questions . ;-)

1.) www-data

2.) For fellow wp-cli newbies, follow this excellent tutorial to get wp-cli working in local dev, and remember NOT to forget the last step. :-)

3.) One should never put the html directory in /home/ for the reason malicious actors could use www-data/php to go beyond the html directory to explore the contents of the user's home directory. However, www-data to having access to .wp-cli located in the home directory, still not clear of the security risk level, seems debatable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.