<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>I am running Ubuntu 16.04 on a test server. I'd like to understand ownership for virtual hosts. I assume www-data:www-data so the files can be edited by PHP such as WordPress being able to upload or upgrade themes and plugins. Is this correct?</p>
<p>I would also like to do some remote editing using SFTP. Some say to add a password and shell to www-data so the editor can connect as www-data. This seems like a security issue.</p>
<p>The other solution i;m seeing is to make the owner:group <span>$USER:$USER - which makes the files owned by the SFTP user which seems not secure and I'm figuring WordPress will not be able to edit it's own files.</span></p>
<p>What is the appropriate way?</p>
<p>Thanks in advance.</p>
<p>Keith </p>
<p><br /></p>
<p> </p>
</body></html>