Ubuntu 14: Owner / Group Uploads (dummie question)

Posted September 18, 2014 3.4k views


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! :)

1 comment
  • 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

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.

Submit an Answer
2 answers

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 :))

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

Thanks again valley_webuzo! ;)