I am not server or security expert so please excuse if my question sounds odd.
I am running wordpress site on ubuntu 14.04 with nginx server. I had a problem while installing new plugin, So I have changed all my wordpress directory permission from my server user to www-data and it started working fine.
My question here is : Is it safe to give wordpress directories ownership to www-data user? If not please suggest alternatives.
Thanks in advance.