Using the command 'chown'
for example if you want to change the ownership of file php.ini to fawas (suppose you login as fawas)
Type : sudo chown -R rene /home/upload
Note: -R must be capital letter
after finish editing the file just change the ownership back by
Type : sudo chown -R root /home/upload