Hi
You have given the answer your self! Ut's a permission problem.
/var/www/html is writable by the root but not by other users
I've found it in ubuntu as well
Two options
1: You can change the permission to 777 to allow anyone to open, read
and write - not secure
2: Transfer files as root
Cheers
Lakshan