Ubuntu 14: Owner / Group Uploads (dummie question)

  • Posted September 18, 2014


When I upload a file or directory to my directories with " www-data www-data owner " the file appears with root root owner, as you can see in this capture:

How can i upload a file or directory with www-data www-data owner/group by sftp?

Thanks! :)


It seems you have gained SSH to your server as “root” user while uploading the files. Hence the issue.

Fix is to chown the files

chown -R www-data:www-data /path/to/files

Hope it helps

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I fix is to chown the files and now works perfect.

Thanks again valley_webuzo! ;)

Yes! I use filezilla in sftp mode. Can i login in filezilla with www-data user? I don’t know his password. Thanks for reply valley :))