Ubuntu 14: Owner / Group Uploads (dummie question)

September 18, 2014 3.1k 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: http://i.imgur.com/PZO0h7d.png?1

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

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

Have another answer? Share your knowledge.