最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp cli - Give WP-Cli User Home Directory Privileges

programmeradmin2浏览0评论

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?

Thanks

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?

Thanks

Share Improve this question asked Nov 1, 2020 at 2:03 mjonesmjones 1531 silver badge11 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

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.

发布评论

评论列表(0)

  1. 暂无评论